Свойство | Тип | Описание | |
---|---|---|---|
allowOwnershipChange | bool | ||
destroyOnDisconnect | bool | ||
dontDestroyOnLoad | bool | ||
networkedBehaviors | SimpleNetworkedMonoBehavior>.Dictionary | ||
networkedBehaviorsMutex | object |
Свойство | Тип | Описание | |
---|---|---|---|
rpcStack | List |
Метод | Описание | |
---|---|---|
AuthoritativeRPC ( string methodName, BeardedManStudios.Network.NetWorker socket, |
Used for the server to call an RPC method on a NetWorker(Socket) on a particular player
|
|
AuthoritativeURPC ( string methodName, BeardedManStudios.Network.NetWorker socket, |
Used for the server to call an URPC method on a NetWorker(Socket) on a particular player
|
|
ChangeOwner ( ulong newOwnerPlayerId ) : void | ||
Cleanup ( ) : void | ||
Deserialize ( NetworkingStream stream ) : void |
Deserialize the Networking Stream
|
|
Disconnect ( ) : void |
Used to do final cleanup when disconnecting. This gets called currently on application quit and scene resets
|
|
ExecuteRPCStack ( ) : void | ||
GenerateUniqueId ( ) : ulong |
Get a generated Unique ID for the next simple networked mono behavior or its derivitive
|
|
GetRPC ( int id ) : |
||
GetSceneNetworkedId ( ) : int | ||
Initialize ( BeardedManStudios.Network.NetWorker socket ) : void |
An initial setup to make sure that a networking manager exists before running any core logic
|
|
InvokeRPC ( |
To Invoke an RPC on a given Networking Stream RPC
|
|
Locate ( ulong id ) : |
Locate a Simple Networked Monobehavior given a ID
|
|
NetworkDestroy ( ulong networkId ) : bool |
Destroy a Simple Networked Monobehavior or any of its derivitives with the given Network ID
|
|
OfflineStart ( ) : void | ||
QueueRPCForInstantiate ( ulong id, NetworkingStream stream ) : void | ||
RPC ( string methodName ) : void |
Call an RPC method with arguments
|
|
RPC ( string methodName, BeardedManStudios.Network.NetWorker socket ) : void |
Call an RPC method with a NetWorker(Socket) and arguments
|
|
RPC ( string methodName, BeardedManStudios.Network.NetWorker socket, NetworkReceivers receivers ) : void |
Call an RPC method on a NetWorker(Socket) with receivers and arguments
|
|
RPC ( string methodName, NetworkReceivers rpcMode ) : void |
Call an RPC method with a receiver and arguments
|
|
ResetAll ( ) : void | ||
ResetBufferClear ( ) : void |
Resets the buffer to be clear again so that it can start buffering
|
|
ResetForScene ( List |
||
Serialized ( ) : BMSByte |
Serialize the Simple Networked Monobehavior
|
|
SetSceneNetworkedId ( int id ) : void | ||
Setup ( BeardedManStudios.Network.NetWorker owningSocket, bool isOwner, ulong networkId, ulong ownerId ) : void |
Setup the Simple Networked Monobehavior stack with a NetWorker, owner, network id, and owner id
|
|
Setup ( BeardedManStudios.Network.NetWorker owningSocket, bool isOwner, ulong networkId, ulong ownerId, bool isSceneObject = false ) : void | ||
SetupObjects ( |
Setup the Simple Networked Monobehavior stack with a NetWorker
|
|
URPC ( string methodName, BeardedManStudios.Network.NetWorker socket, NetworkReceivers receivers ) : void |
Call an Unreliable RPC method on a NetWorker(Socket) with receivers and arguments
|
|
URPC ( string methodName, NetworkReceivers rpcMode ) : void |
Call an Unreliable RPC method with a receiver and arguments
|
Метод | Описание | |
---|---|---|
NetworkDisconnect ( ) : void | ||
NetworkStart ( ) : void |
A start method that is called after the object has been setup on the network
|
|
NonOwnerFixedUpdate ( ) : void | ||
NonOwnerUpdate ( ) : void | ||
OnApplicationQuit ( ) : void | ||
OnDestroy ( ) : void | ||
OwnerFixedUpdate ( ) : void | ||
OwnerUpdate ( ) : void | ||
Reflect ( ) : void |
Get the RPC's of the simple networked monobehavior
|
|
UnityFixedUpdate ( ) : void | ||
UnityUpdate ( ) : void |
Метод | Описание | |
---|---|---|
AssignNewOwner ( ulong newOwnerPlayerId ) : void | ||
AuthRPC ( string methodName, BeardedManStudios.Network.NetWorker socket, |
||
DelayedInitialize ( BeardedManStudios.Network.NetWorker socket ) : void | ||
DoOwnerFixedUpdate ( ) : void | ||
DoOwnerUpdate ( ) : void | ||
GetStreamRPC ( string methodName, NetworkReceivers receivers ) : int |
Creates a network stream for the method with the specified string name and returns the method info
|
|
ServerChangeOwner ( ulong newOwnerPlayerId ) : void | ||
ThrowNetworkerException ( ) : void |
public AuthoritativeRPC ( string methodName, BeardedManStudios.Network.NetWorker socket, |
||
methodName | string | Method(Function) name to call |
socket | BeardedManStudios.Network.NetWorker | The NetWorker(Socket) being used |
player | The NetworkingPlayer who will execute this RPC | |
runOnServer | bool | |
Результат | void |
public AuthoritativeURPC ( string methodName, BeardedManStudios.Network.NetWorker socket, |
||
methodName | string | Method(Function) name to call |
socket | BeardedManStudios.Network.NetWorker | The NetWorker(Socket) being used |
player | The NetworkingPlayer who will execute this RPC | |
runOnServer | bool | |
Результат | void |
public ChangeOwner ( ulong newOwnerPlayerId ) : void | ||
newOwnerPlayerId | ulong | |
Результат | void |
public Deserialize ( NetworkingStream stream ) : void | ||
stream | NetworkingStream | Stream to be deserialized |
Результат | void |
public static GenerateUniqueId ( ) : ulong | ||
Результат | ulong |
public GetRPC ( int id ) : |
||
id | int | |
Результат |
public static Initialize ( BeardedManStudios.Network.NetWorker socket ) : void | ||
socket | BeardedManStudios.Network.NetWorker | |
Результат | void |
public InvokeRPC ( |
||
stream | Networking Stream RPC to read from | |
Результат | bool |
public static Locate ( ulong id ) : |
||
id | ulong | ID of the Simple Networked Monobehavior |
Результат |
public static NetworkDestroy ( ulong networkId ) : bool | ||
networkId | ulong | Network ID to be destroyed |
Результат | bool |
public static QueueRPCForInstantiate ( ulong id, NetworkingStream stream ) : void | ||
id | ulong | |
stream | NetworkingStream | |
Результат | void |
public RPC ( string methodName ) : void | ||
methodName | string | Method(Function) name to call |
Результат | void |
public RPC ( string methodName, BeardedManStudios.Network.NetWorker socket ) : void | ||
methodName | string | Method(Function) name to call |
socket | BeardedManStudios.Network.NetWorker | The NetWorker(Socket) being used |
Результат | void |
public RPC ( string methodName, BeardedManStudios.Network.NetWorker socket, NetworkReceivers receivers ) : void | ||
methodName | string | Method(Function) name to call |
socket | BeardedManStudios.Network.NetWorker | The NetWorker(Socket) being used |
receivers | NetworkReceivers | Who shall receive the RPC |
Результат | void |
public RPC ( string methodName, NetworkReceivers rpcMode ) : void | ||
methodName | string | Method(Function) name to call |
rpcMode | NetworkReceivers | Who shall receive the RPC |
Результат | void |
public static ResetForScene ( List |
||
skip | List |
|
Результат | void |
public SetSceneNetworkedId ( int id ) : void | ||
id | int | |
Результат | void |
public Setup ( BeardedManStudios.Network.NetWorker owningSocket, bool isOwner, ulong networkId, ulong ownerId ) : void | ||
owningSocket | BeardedManStudios.Network.NetWorker | The NetWorker to be setup with |
isOwner | bool | If this object is the owner |
networkId | ulong | The NetworkID for this Simple Networked Monobehavior |
ownerId | ulong | The OwnerID for this Simple Networked Monobehavior |
Результат | void |
public Setup ( BeardedManStudios.Network.NetWorker owningSocket, bool isOwner, ulong networkId, ulong ownerId, bool isSceneObject = false ) : void | ||
owningSocket | BeardedManStudios.Network.NetWorker | |
isOwner | bool | |
networkId | ulong | |
ownerId | ulong | |
isSceneObject | bool | |
Результат | void |
public static SetupObjects ( |
||
behaviors | ||
owningSocket | BeardedManStudios.Network.NetWorker | The NetWorker to be setup with |
Результат | void |
public URPC ( string methodName, BeardedManStudios.Network.NetWorker socket, NetworkReceivers receivers ) : void | ||
methodName | string | Method(Function) name to call |
socket | BeardedManStudios.Network.NetWorker | The NetWorker(Socket) being used |
receivers | NetworkReceivers | Who shall receive the RPC |
Результат | void |
public URPC ( string methodName, NetworkReceivers rpcMode ) : void | ||
methodName | string | Method(Function) name to call |
rpcMode | NetworkReceivers | Who shall receive the RPC |
Результат | void |
public static Dictionary |
||
Результат | SimpleNetworkedMonoBehavior>.Dictionary |
public static object networkedBehaviorsMutex | ||
Результат | object |