Skip to content

Contract

Base class for creating network behavior.

Instance Properties

Contract.origin : NetOrigin
(Read-only) The role of the current object in the network.
Contract.conversation : NetConversation
(Read-only) The current Conversation .

Instance Method

Contract.Send ( type : T , args : Parameters ) : protected
Send an object derived from Contract.
Contract.Echo ( type : T , args : Parameters ) : protected
Receives an object derived from Contract and IContractEchocapable.
Contract.FindEntity ( entityID : string ) : protected
Find entity objects based on entityID.
Contract.CreateNewEntity ( prefab_id : string , entity : Entity? ) : protected
Create game objects.
Contract.Exescute ( ...args : any ) : abstract
Execute function.
Contract.Receive ( ...args : any ) : abstract
Receive information.