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 : EnumFields
None
Not replicated object.
Declaration
public const NetworkObjectRole NoneField 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 OwnedAuthoritativeField 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 ReplicatedField 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 ReplicatedSimulatedField Value
| NetworkObjectRole 
 | 
value__
Declaration
public byte value__Field Value
| System.Byte 
 |