Show / Hide Table of Contents

Class ZNetExtension

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

Methods

Name Description
GetInstanceType(ZNet) Determine the current game instance type regarding to networking.
IsAdmin(ZNet, long) Determine if a peer uid is in the admin list on the current ZNet. Only works on the server instance
IsClientInstance(ZNet) Returns true if the game was started locally and is connected to a server.
IsLocalInstance(ZNet) Returns true if the game was started locally and a local world was started.
IsServerInstance(ZNet) Returns true if the game was started as a dedicated server.
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾