Skip to main content

MLAPI.NetworkVariable.NetworkVariableSettings

The settings class used by the build in NetworkVar implementations

Inheritance#

System.Dynamic.ExpandoObject

System.Dynamic.ExpandoObject

Inherited Members#

Object.Equals(Object)

Object.Equals(Object, Object)

Object.GetHashCode()

Object.GetType()

Object.MemberwiseClone()

Object.ReferenceEquals(Object, Object)

Object.ToString()

Namespace: System.Dynamic.ExpandoObject#
Assembly: MLAPI.dll#
Syntax#
public class NetworkVariableSettings

Constructors#

NetworkVariableSettings()#

Constructs a new NetworkVariableSettings instance

Declaration#

public NetworkVariableSettings()

Fields#

ReadPermission#

Defines the read permissions for this var

Declaration#

public NetworkVariablePermission ReadPermission

Field Value#

TypeDescription
NetworkVariablePermission

ReadPermissionCallback#

The delegate used to evaluate read permission when the "Custom" mode is used

Declaration#

public NetworkVariablePermissionsDelegate ReadPermissionCallback

Field Value#

TypeDescription
NetworkVariablePermissionsDelegate

SendNetworkChannel#

The name of the channel to use for this variable. Variables with different channels will be split into different packets

Declaration#

public NetworkChannel SendNetworkChannel

Field Value#

TypeDescription
NetworkChannel

SendTickrate#

The maximum times per second this var will be synced. A value of 0 will cause the variable to sync as soon as possible after being changed. A value of less than 0 will cause the variable to sync only at once at spawn and not update again.

Declaration#

public float SendTickrate

Field Value#

TypeDescription
System.Single

WritePermission#

Defines the write permissions for this var

Declaration#

public NetworkVariablePermission WritePermission

Field Value#

TypeDescription
NetworkVariablePermission

WritePermissionCallback#

The delegate used to evaluate write permission when the "Custom" mode is used

Declaration#

public NetworkVariablePermissionsDelegate WritePermissionCallback

Field Value#

TypeDescription
NetworkVariablePermissionsDelegate