EntityInfoProtocols

The entity info protocols class brings together the relatively complex player and NPC info protocols. This is responsible for registering all the client types that are used by the user.

Properties

Link copied to clipboard
val npcAvatarFactory: NpcAvatarFactory

the avatar factory for NPCs. Each NPC must allocate one avatar as they spawn, and that avatar must be deallocated when the NPC is fully removed from the game.

Link copied to clipboard
val npcInfoProtocol: NpcInfoProtocol

the main NPC info protocol responsible for computing the npc info packet for all the players in the game.

Link copied to clipboard
val playerAvatarFactory: PlayerAvatarFactory

the avatar factory for players. Since players have a 1:1 player info to avatar ratio, the avatar is automatically included in the player info object that is requested. This is additionally strategically placed to improve cache locality and improve the performance of the player info protocol.

Link copied to clipboard
val playerInfoProtocol: PlayerInfoProtocol

the main player info protocol responsible for computing the player info packet for all the players in the game.

Link copied to clipboard
val worldEntityAvatarFactory: WorldEntityAvatarFactory
Link copied to clipboard
val worldEntityInfoProtocol: WorldEntityProtocol