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.
PermissionString
A validated access-control permission token.
RoomBounds
Spatial bounds of the room in world coordinates.
RoomDefinition
Defines a spatial region as a Room.
RoomMembership
Defines which Room an entity currently belongs to.
RoomName
A validated room name.
RoomStringError
Error returned when a RoomName or PermissionString exceeds the allowed byte length.
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.
RoomAccessPolicy
Access control policy for the room.
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).
MAX_ROOM_STRING_BYTES
Maximum byte length (UTF-8) for RoomName and PermissionString.
MINING_BEAM_KIND
Replicated component for the mining laser beam state.
PROTOCOL_VERSION
ROOM_BOUNDS_KIND
Replicated component for Room Bounds.
ROOM_DEFINITION_KIND
Replicated component for Room Definition.
ROOM_MEMBERSHIP_KIND
Replicated component for Room Membership.