Expand description
Protocol-level primitive types.
Structs§
- Agent
Properties - Basic properties for any agent entity.
- Client
Id - A unique identifier for a connected client session. Assigned by the transport layer on connection, released on disconnect.
- Component
Kind - A component type identifier. Used by the Encoder to determine how to serialize/deserialize a specific component’s fields.
- Data
Drop - Replicated state for a data drop entity.
- Data
Store - Replicated state for an agent’s data store.
- Extraction
Beam - Replicated state for an agent’s extraction beam.
- Input
Command - Aggregated user input for a single simulation tick.
- Integrity
Pool - Replicated state for an agent’s integrity pool.
- LocalId
- The ECS’s internal entity handle. Opaque to the network layer.
In Phase 1 (Bevy), this wraps
bevy_ecs::entity::Entity. - Network
Id - A globally unique entity identifier used in all network communication. Assigned by the server. Immutable for the lifetime of the entity.
- Network
IdAllocator - Authoritative allocator for
NetworkIds. - Permission
String - A validated access-control permission token.
- Priority
Pool - Replicated state for an agent’s priority pool.
- Resource
- Tool
- Replicated state for an agent’s primary tool.
- ToolId
- Unique identifier for a tool type.
- Transform
- Standard transform component used for replication (
ComponentKind1). - Workspace
Bounds - Spatial bounds of the workspace in world coordinates.
- Workspace
Definition - Defines a spatial region as a Workspace.
- Workspace
Membership - Defines which Workspace an entity currently belongs to.
- Workspace
Name - A validated workspace name.
- Workspace
String Error - Error returned when a
WorkspaceNameorPermissionStringexceeds the allowed byte length. - ZoneId
- A globally unique zone identifier.
Enums§
- AIState
- NPC Drone behavior state Machine.
- Agent
Kind - Agent classification for rendering and property selection.
- Allocator
Error - Interaction
Beam Type - Beam delivery classification.
- Payload
Type - Payload types extracted from resources.
- Player
Input Kind - Individual input actions performed by a player in a single tick.
- Respawn
Location - Definitive respawn target semantics.
- Workspace
Access Policy - Access control policy for the workspace.
Constants§
- ACTION_
USE_ TOOL - Action bitflag: use primary tool.
- ALLOWED_
ACTIONS_ MASK - Bitmask of all currently supported action flags.
- BEAM_
MARKER_ KIND - Replicated component for beam marker state.
- DATA_
DROP_ KIND - Replicated component for data drop state.
- DATA_
STORE_ KIND - Replicated component for agent data store state (replicated to owner).
- ENTITY_
TYPE_ AGENT - Constant identifiers for entity types used in replication and rendering.
- ENTITY_
TYPE_ AI_ AGENT - ENTITY_
TYPE_ BEAM - ENTITY_
TYPE_ CARRIER_ AGENT - ENTITY_
TYPE_ DATA_ DROP - ENTITY_
TYPE_ HEAVY_ AGENT - ENTITY_
TYPE_ RESOURCE - ENTITY_
TYPE_ TRAINING_ TARGET - EXTRACTION_
BEAM_ KIND - Replicated component for the extraction beam state.
- INPUT_
COMMAND_ KIND - Discriminant for client-to-server input commands. Tagged as Transient/Inbound-Only.
- INTEGRITY_
POOL_ KIND - Replicated component for integrity pool state.
- MAX_
ACTIONS - Maximum allowed actions in a single
InputCommandto prevent payloadDoS. Chosen to stay well withinMAX_SAFE_PAYLOAD_SIZE(1200 bytes). - MAX_
WORKSPACE_ STRING_ BYTES - Maximum byte length (UTF-8) for
WorkspaceNameandPermissionString. - PRIORITY_
POOL_ KIND - Replicated component for priority pool state.
- PROTOCOL_
VERSION - RESOURCE_
KIND - Replicated component for resource payload depletion tracking.
- TOOL_
KIND - Replicated component for primary tool state.
- WORKSPACE_
BOUNDS_ KIND - Replicated component for Workspace Bounds.
- WORKSPACE_
DEFINITION_ KIND - Replicated component for Workspace Definition.
- WORKSPACE_
MEMBERSHIP_ KIND - Replicated component for Workspace Membership.
Functions§
- get_
default_ properties - Returns the default authoritative vitals (
max_integrity,max_priority) for a given entity type.