MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Init

Method Init

Source/Engine/Networking/NetworkReplicationHierarchy.cpp:22–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22void NetworkReplicationHierarchyUpdateResult::Init()
23{
24 _clientsHaveLocation = false;
25 _clients.Resize(NetworkManager::Clients.Count());
26 _clientsMask = NetworkManager::Mode == NetworkManagerMode::Client ? NetworkClientsMask::All : NetworkClientsMask();
27 for (int32 i = 0; i < _clients.Count(); i++)
28 _clientsMask.SetBit(i);
29 _entries.Clear();
30 ReplicationScale = 1.0f;
31}
32
33void NetworkReplicationHierarchyUpdateResult::SetClientLocation(int32 clientIndex, const Vector3& location)
34{

Callers

nothing calls this directly

Calls 4

SetBitMethod · 0.80
ResizeMethod · 0.45
CountMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected