Expand description
Protocol-level primitive types.
Structs§
- Asteroid
- Replicated state for an asteroid’s resource depletion.
- Cargo
Hold - Replicated state for a ship’s cargo hold.
- 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.
- Input
Command - Aggregated user input for a single simulation tick.
- LocalId
- The ECS’s internal entity handle. Opaque to the network layer.
In Phase 1 (Bevy), this wraps
bevy_ecs::entity::Entity. - Mining
Beam - Replicated state for a ship’s mining beam.
- 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. - Sector
Id - A globally unique sector/room identifier.
- Ship
Stats - Basic vitals for any ship entity.
- Transform
- Standard transform component used for replication (
ComponentKind1). - Weapon
Id - Unique identifier for a weapon type.
Enums§
- AIState
- NPC Drone behavior state Machine.
- Allocator
Error - OreType
- Material types extracted from asteroids.
- Player
Input Kind - Individual input actions performed by a player in a single tick.
- Projectile
Type - Projectile delivery classification.
- Respawn
Location - Definitive respawn target semantics.
- Ship
Class - Ship classification for rendering and stat selection.
Constants§
- ASTEROID_
KIND - Replicated component for asteroid ore depletion tracking.
- CARGO_
HOLD_ KIND - Replicated component for ship cargo state (replicated to owner).
- INPUT_
COMMAND_ KIND - Discriminant for client-to-server input commands. Tagged as Transient/Inbound-Only.
- MAX_
ACTIONS - Maximum allowed actions in a single
InputCommandto prevent payloadDoS. Chosen to stay well withinMAX_SAFE_PAYLOAD_SIZE(1200 bytes). - MINING_
BEAM_ KIND - Replicated component for the mining laser beam state.
- PROTOCOL_
VERSION