Table of Contents

Class NetworkVariable

Namespace
Netick
Assembly
Netick.dll
public abstract class NetworkVariable : OR_Node, Serializable
Inheritance
NetworkVariable
Implements
Derived
Inherited Members

Constructors

NetworkVariable(NetworkBehaviour, int, bool, int, bool)

public NetworkVariable(NetworkBehaviour netObject, int id, bool isPredicted, int interpolationOption, bool onlyInputSource)

Parameters

netObject NetworkBehaviour
id int
isPredicted bool
interpolationOption int
onlyInputSource bool

Properties

GetInputSource

public override NetworkConnection GetInputSource { get; }

Property Value

NetworkConnection

Id

public override int Id { get; }

Property Value

int

IsEffectedByAoI

public override bool IsEffectedByAoI { get; }

Property Value

bool

Relevance

public override Relevancy Relevance { get; }

Property Value

Relevancy

Sandbox

public override NetworkSandbox Sandbox { get; }

Property Value

NetworkSandbox

Methods

ApplyReceivedData(Tick)

public abstract void ApplyReceivedData(Tick srvTick)

Parameters

srvTick Tick

IsController(ServerConnection)

public override bool IsController(ServerConnection client)

Parameters

client ServerConnection

Returns

bool

Read(NetickBuffer, Tick)

public override void Read(NetickBuffer buffer, Tick clientTickAck)

Parameters

buffer NetickBuffer
clientTickAck Tick

Write(NetickBuffer, ServerConnection, int, Tick, out int)

public override bool Write(NetickBuffer buffer, ServerConnection client, int maxBytes, Tick simulationTick, out int left)

Parameters

buffer NetickBuffer
client ServerConnection
maxBytes int
simulationTick Tick
left int

Returns

bool

WriteId(NetickBuffer, IntCompressor)

public override void WriteId(NetickBuffer buffer, IntCompressor compressor)

Parameters

buffer NetickBuffer
compressor IntCompressor