3#include "network_architecture.h"
4#include "connection_manager.h"
5#include "protocol_handler.h"
7#include "network_map.h"
52 size_t pending_destroy_count;
53 size_t pending_destroy_capacity;
70 if (!cs || !cs->
ecs)
return;
74 ecs_add_component(cs->
ecs, e, COMPONENT_NETWORKED_ENTITY, &ne);
101void on_packet_received_cs(
void* user_data,
peer_t* peer,
const void* data,
int len);
108void on_peer_connected_cs(
void* user_data,
peer_t* peer);
115void on_peer_disconnected_cs(
void* user_data,
peer_t* peer);
131ECSNET_API
void network_cs_update(
network_cs_t* network_cs,
float dt);
137ECSNET_API
void network_cs_destroy(
network_cs_t* network_cs);
150ECSNET_API
void network_cs_mark_entity_destroy(
network_cs_t* cs, entity_t entity);
160ECSNET_API
void network_cs_mark_network_id_destroy(
network_cs_t* cs, uint32_t network_id);
Defines the NetworkedEntity component used for network replication.
uint32_t interest_mask_t
Bitmask type for representing interest groups (up to 32 groups).
Definition networked_entity.h:22
Manages all active network connections (peers) for a client or server.
Definition connection_manager.h:74
Internal structure representing the ECS world state. This holds:
Definition ecs_internal.h:44
Structure for configuring the network architecture.
Definition network_architecture.h:24
Represents the client-server network architecture implementation. This struct contains the core compo...
Definition network_cs.h:18
protocol_handler_t protocol_handler
Definition network_cs.h:22
float sync_acc
Definition network_cs.h:23
connection_manager_t connection_manager
Definition network_cs.h:21
network_map_t network_map
Definition network_cs.h:30
ecs_t * ecs
Definition network_cs.h:19
uint32_t next_network_id
Definition network_cs.h:38
network_architecture_config_t config
Definition network_cs.h:20
uint32_t * pending_destroy_ids
Pending destroy list for server‑side entity removal.
Definition network_cs.h:51
Dynamic mapping structure from network IDs to local entity IDs. This map grows dynamically as new net...
Definition network_map.h:22
Component representing network identity and interest groups.
Definition networked_entity.h:31
Represents a connected network peer.
Definition connection_manager.h:45
The protocol handler structure. Manages the state for incoming and outgoing network packets,...
Definition protocol_handler.h:62