|
Server Meshing
|
#include <ServerCoordinator.h>
Classes | |
| struct | OwnershipInfo |
Public Types | |
| using | EntityId = uint32_t |
| using | ServerPeerId = uint16_t |
Public Member Functions | |
| bool | ShouldTranferOwnership (const uint32_t aEntityID, const Tga::Vector3f aPosition, TransferDecision &outDecision) |
| bool | DecideOwnership (const TransferRequest &aRequest, TransferDecision &outDecision) |
| void | ApplyOwnershipTransfer (const TransferDecision &aDecision) |
| ServerPeerId | GetOwner (EntityId aId) const |
| uint32_t | GetEpoch (EntityId aId) const |
| bool | RegisterEntity (EntityId aId, ServerPeerId aOwner) |
| void | UnregisterEntity (EntityId aId) |
| void | ApplyOwnershipTransfer (EntityId aId, ServerPeerId aNewOwner) |
| bool | TryRegisterEndpoint (ServerPeerId aId) |
| bool | HasEndpoint (ServerPeerId aId) |
| const std::vector< ServerPeerId > & | GetServerIDs () const |
| using ServerCoordinator::EntityId = uint32_t |
| using ServerCoordinator::ServerPeerId = uint16_t |
| void ServerCoordinator::ApplyOwnershipTransfer | ( | const TransferDecision & | aDecision | ) |
| void ServerCoordinator::ApplyOwnershipTransfer | ( | EntityId | aId, |
| ServerPeerId | aNewOwner ) |
| bool ServerCoordinator::DecideOwnership | ( | const TransferRequest & | aRequest, |
| TransferDecision & | outDecision ) |
| uint32_t ServerCoordinator::GetEpoch | ( | EntityId | aId | ) | const |
| ServerCoordinator::ServerPeerId ServerCoordinator::GetOwner | ( | EntityId | aId | ) | const |
| const std::vector< ServerCoordinator::ServerPeerId > & ServerCoordinator::GetServerIDs | ( | ) | const |
| bool ServerCoordinator::HasEndpoint | ( | ServerPeerId | aId | ) |
| bool ServerCoordinator::RegisterEntity | ( | EntityId | aId, |
| ServerPeerId | aOwner ) |
| bool ServerCoordinator::ShouldTranferOwnership | ( | const uint32_t | aEntityID, |
| const Tga::Vector3f | aPosition, | ||
| TransferDecision & | outDecision ) |
| bool ServerCoordinator::TryRegisterEndpoint | ( | ServerPeerId | aId | ) |
| void ServerCoordinator::UnregisterEntity | ( | EntityId | aId | ) |