Skip to main content

Module types

Module types 

Source
Expand description

Protocol-level primitive types.

Structs§

Asteroid
Replicated state for an asteroid’s resource depletion.
CargoHold
Replicated state for a ship’s cargo hold.
ClientId
A unique identifier for a connected client session. Assigned by the transport layer on connection, released on disconnect.
ComponentKind
A component type identifier. Used by the Encoder to determine how to serialize/deserialize a specific component’s fields.
InputCommand
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.
MiningBeam
Replicated state for a ship’s mining beam.
NetworkId
A globally unique entity identifier used in all network communication. Assigned by the server. Immutable for the lifetime of the entity.
NetworkIdAllocator
Authoritative allocator for NetworkIds.
SectorId
A globally unique sector/room identifier.
ShipStats
Basic vitals for any ship entity.
Transform
Standard transform component used for replication (ComponentKind 1).
WeaponId
Unique identifier for a weapon type.

Enums§

AIState
NPC Drone behavior state Machine.
AllocatorError
OreType
Material types extracted from asteroids.
PlayerInputKind
Individual input actions performed by a player in a single tick.
ProjectileType
Projectile delivery classification.
RespawnLocation
Definitive respawn target semantics.
ShipClass
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 InputCommand to prevent payload DoS. Chosen to stay well within MAX_SAFE_PAYLOAD_SIZE (1200 bytes).
MINING_BEAM_KIND
Replicated component for the mining laser beam state.
PROTOCOL_VERSION