vkmEngine 1.0.0
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
Vkm::Engine::NetType Struct Reference

One replicated component type, reduced to what the wire needs. More...

#include <schema.h>

Public Attributes

std::string name
 The serializable identity, as everywhere else in the engine.
bool(* has )(const Scene &, EntityId) = nullptr
 Does this entity carry one? Decides its bit in a snapshot's mask.
void(* encode )(const Scene &, EntityId, BitWriter &) = nullptr
 Encode this entity's component. Asked only of an entity has said yes to.
bool(* decode )(Scene &, EntityId, BitReader &) = nullptr
 Decode onto this entity, adding the component when it is missing.

Detailed Description

One replicated component type, reduced to what the wire needs.

Type-erased: a game module registers types after the runtime was built.


The documentation for this struct was generated from the following file: