ecsnet
Loading...
Searching...
No Matches
networked_entity.h File Reference

Defines the NetworkedEntity component used for network replication. More...

#include <stdint.h>
#include <string.h>
#include "ecs.h"
Include dependency graph for networked_entity.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  networked_entity_t
 Component representing network identity and interest groups. More...

Typedefs

typedef uint32_t interest_mask_t
 Bitmask type for representing interest groups (up to 32 groups).

Variables

ECSNET_API component_t COMPONENT_NETWORKED_ENTITY
 Global component ID for NetworkedEntity. Defined in ecs_builtin.c. Used by the ECS to identify this component type.

Detailed Description

Defines the NetworkedEntity component used for network replication.

Each entity that should be replicated across the network includes this component. It stores a globally unique network_id assigned by the server and a bitmask of interest_groups which determines which clients should receive updates for this entity.