class
INetPawnHost
- Module
- Networking
- Header
#include "Networking/Session/NetPawnHost.h"- Namespace
Mowo
Constructors
| Signature | Name | Description |
|---|---|---|
virtual ~INetPawnHost() = default | ~INetPawnHost |
Public functions
| Returns | Name | Description |
|---|---|---|
EntityID | SpawnPawnFor | Spawn (or, for the local host player, adopt) the pawn for a player and return its backing entity — INVALID_ENTITY makes the session fall back to a bare entity. |
bool | DestroyPawnFor | Tear down the player's pawn. |
Function details
~INetPawnHost
C++
virtual ~INetPawnHost() = defaultSpawnPawnFor
C++
virtual EntityID SpawnPawnFor(uint32_t playerId, uint32_t peerId, bool isLocal, const char* displayName) = 0Spawn (or, for the local host player, adopt) the pawn for a player and return its backing entity — INVALID_ENTITY makes the session fall back to a bare entity. The host also registers the actor with the replication manager's address book; the session only sees the entity.
DestroyPawnFor
C++
virtual bool DestroyPawnFor(uint32_t playerId, EntityID pawnEntity) = 0Tear down the player's pawn. Return true when the host handled the entity (actor path); false makes the session destroy the raw entity. Controller release (UnPossess) belongs here either way.
Generated from Networking/Session/NetPawnHost.h via networking.json · Nov 4, 2026Version 1.0.0