Class NetworkReplicationHierarchyUpdateResult
Network replication hierarchy output data to send.
Namespace: FlaxEngine.Networking
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
public class NetworkReplicationHierarchyUpdateResult : Object
Constructors
NetworkReplicationHierarchyUpdateResult()
Initializes a new instance of the NetworkReplicationHierarchyUpdateResult.
Declaration
public NetworkReplicationHierarchyUpdateResult()
Properties
ClientsCount
Gets amount of the clients to use. Matches NetworkManager.Clients.
Declaration
[Unmanaged]
public int ClientsCount { get; }
Property Value
System.Int32
|
ClientsMask
Gets mask with all client bits set. Matches NetworkManager.Clients.
Declaration
[Unmanaged]
public NetworkClientsMask ClientsMask { get; }
Property Value
NetworkClientsMask
|
ReplicationScale
Scales the ReplicationFPS property of objects in hierarchy. Can be used to slow down or speed up replication rate.
Declaration
[Unmanaged]
public float ReplicationScale { get; set; }
Property Value
System.Single
|
Methods
AddObject(Object)
Adds object to the update results.
Declaration
[Unmanaged]
public void AddObject(Object obj)
Parameters
Object
obj
|
AddObject(Object, NetworkClientsMask)
Adds object to the update results. Defines specific clients to receive the update (server-only, unused on client). Mask matches NetworkManager.Clients.
Declaration
[Unmanaged]
public void AddObject(Object obj, NetworkClientsMask targetClients)
Parameters
Object
obj
|
NetworkClientsMask
targetClients
|
GetClientLocation(Int32, out Vector3)
Gets the viewer location for a certain client. Client index must match NetworkManager.Clients. Returns true if got a location set, otherwise false.
Declaration
[Unmanaged]
public bool GetClientLocation(int clientIndex, out Vector3 location)
Parameters
System.Int32
clientIndex
|
Vector3
location
|
Returns
System.Boolean
|
SetClientLocation(Int32, Vector3)
Sets the viewer location for a certain client. Client index must match NetworkManager.Clients.
Declaration
[Unmanaged]
public void SetClientLocation(int clientIndex, Vector3 location)
Parameters
System.Int32
clientIndex
|
Vector3
location
|