PIENetThread class
#include <Runtime/Net/Public/PIENetThread.h>
Base classes
-
template<typename Derived>class NetThreadBase<PIENetThread>
Public functions
- void SetAuthorityWorld(WorldBase* world)
- void SetReplicationSystem(ReplicationSystem* repl)
- void AddClient(HSteamNetConnection clientHandle, WorldBase* world)
- void UpdateClientOwnerID(HSteamNetConnection clientHandle, uint8_t ownerID, WorldBase* world)
- void RemoveClient(uint8_t ownerID)
- void ClearClients()
- void InitChildren()
- auto GetAuthority() -> AuthorityNet&
- void AcknowledgeLevelReady(StreamingRequestID requestID)
- Route the LevelReady ack to the client handler whose OwnerID matches requestID.GetOwnerID().
- void TickInputSend()
- void TickDispatch()
Function documentation
void PIENetThread:: AddClient(HSteamNetConnection clientHandle,
WorldBase* world)
Register a client handler keyed by its GNS connection handle. Call this immediately after Connect(), before any PumpMessages() calls, so the handler is in place to receive the handshake reply.
void PIENetThread:: UpdateClientOwnerID(HSteamNetConnection clientHandle,
uint8_t ownerID,
WorldBase* world)
Promote an existing client entry from handle-based to OwnerID-based routing. Call this after a PumpMessages() cycle once the server has assigned an OwnerID.
void PIENetThread:: InitChildren()
Call after Initialize() to wire the Server child handler to the shared transport. Must be called before SetAuthorityWorld / AddClient.