Skip to main content

Module entity

Module entity 

Source
Expand description

Entity system for parsing and representing game state.

This module handles everything related to entities in the demo:

  • Entity lifecycle (create, update, delete)
  • Serializers and field definitions
  • Class information
  • Field value decoding
  • String tables

Structs§

ClassEntry
A single entity class entry.
ClassInfo
Parsed class info from DEM_ClassInfo. Maps class IDs to network names.
Entity
A single entity with its class, fields, and current state.
EntityContainer
Container managing all active entities.
FieldDecodeContext
Mutable state shared across field decoders during a single parse pass.
FieldMetadata
Metadata about how to decode a field.
Serializer
A serializer: a named collection of fields describing an entity class.
SerializerContainer
Container holding all parsed serializers, indexed by name.
SerializerField
A single field within a serializer, describing one network property.
StringTable
A string table.
StringTableContainer
Container for all string tables.
StringTableEntry
A single entry in a string table.

Enums§

FieldValue
Represents a decoded entity field value from the demo’s entity system.

Constants§

ENTITY_HANDLE_INDEX_MASK
Mask that extracts the entity-array index from a networked CHandle value.
INVALID_ENTITY_HANDLE
Sentinel value for a CHandle field that points at no entity.

Functions§

protobuf_handle_index
Resolve a protobuf-style optional CHandle to an entity-array index.