Show / Hide Table of Contents

Class ZNetExtension

Extends ZNet with a clear diversion between local, client and server instances.
Inheritance
System.Object
ZNetExtension
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Jotunn
Assembly: Jotunn.dll
Syntax
public static class ZNetExtension

Methods

| Improve this Doc View Source

GetInstanceType(ZNet)

Determine the current game instance type regarding to networking.
Declaration
public static ZNetExtension.ZNetInstanceType GetInstanceType(this ZNet znet)
Parameters
Type Name Description
ZNet znet
Returns
Type Description
ZNetExtension.ZNetInstanceType
| Improve this Doc View Source

IsAdmin(ZNet, Int64)

Determine if a peer uid is in the admin list on the current
Declaration
public static bool IsAdmin(this ZNet znet, long uid)
Parameters
Type Name Description
ZNet znet
System.Int64 uid
Returns
Type Description
System.Boolean
| Improve this Doc View Source

IsClientInstance(ZNet)

Returns true if the game was started locally and is connected to a server.
Declaration
public static bool IsClientInstance(this ZNet znet)
Parameters
Type Name Description
ZNet znet
Returns
Type Description
System.Boolean
| Improve this Doc View Source

IsLocalInstance(ZNet)

Returns true if the game was started locally and a local world was started.
Declaration
public static bool IsLocalInstance(this ZNet znet)
Parameters
Type Name Description
ZNet znet
Returns
Type Description
System.Boolean
| Improve this Doc View Source

IsServerInstance(ZNet)

Returns true if the game was started as a dedicated server.
Declaration
public static bool IsServerInstance(this ZNet znet)
Parameters
Type Name Description
ZNet znet
Returns
Type Description
System.Boolean
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾