Class NetworkObjectRole
The high-level network object role and authority. Used to define who owns the object and when it can be simulated or just replicated.
Inheritance
System.Object
NetworkObjectRole
Namespace: FlaxEngine.Networking
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
public sealed class NetworkObjectRole : Enum
Fields
None
Not replicated object.
Declaration
public const NetworkObjectRole None
Field Value
NetworkObjectRole
|
OwnedAuthoritative
Server/client owns the object and replicates it to others. Only owning client can simulate object and provides current state.
Declaration
public const NetworkObjectRole OwnedAuthoritative
Field Value
NetworkObjectRole
|
Replicated
Server/client gets replicated object from other server/client who owns it. Object cannot be simulated locally (any changes will be overriden by replication).
Declaration
public const NetworkObjectRole Replicated
Field Value
NetworkObjectRole
|
ReplicatedSimulated
Client gets replicated object from server but still can locally autonomously simulate it too. For example, client can control local pawn with real human input but will validate with server proper state (eg. to prevent cheats).
Declaration
public const NetworkObjectRole ReplicatedSimulated
Field Value
NetworkObjectRole
|
value__
Declaration
public byte value__
Field Value
System.Byte
|