How 1person280/cute-of-duty works
Cute Of Duty is a server-authoritative tactical extraction shooter. The player-facing loop runs from menu/loadout into a match, where the client sends intent, the server simulates combat and world state, and snapshots feed the client’s HUD and 3D presentation; extraction returns the player to the menu. The graph combines documented architecture and sampled call structure. Some major gameplay and networking subsystems are represented from README descriptions and the source index; their internal calls are not inferred where source was not sampled.
Main entry points: network.rs Client networking · launcher/mod.rs Client assembly · session.rs Session and transport · engine/mod.rs Authoritative tick
Components 29
Shared contracts
- Wire codec
ContractCode/net/codec.rs - Packet format
ContractCode/net/packet.rs - Message protocol
ContractCode/net/protocol.rs - Element rules
ContractCode/element.rs - Operator catalog
ContractCode/operator.rs - Map definitions
ContractCode/map/mod.rs
Client presentation
- Client entry
HostCode/main.rs - Client assembly
HostCode/launcher/mod.rs - Client flow
HostCode/flow/state.rs - Menu and loadout
HostCode/menu/mod.rs - Client networking
HostCode/net/network.rs - Snapshot rendering
HostCode/net/snapshot.rs - Remote resources
HostCode/net/remote.rs - Combat HUD
HostCode/hud/vitals.rs - Map HUD
HostCode/hud/minimap.rs - Inventory UI
HostCode/hud/item/wheel.rs - 3D world and camera
HostCode/world/scene.rs - Camera rig
HostCode/world/camera.rs
Authoritative server
- Server entry
ServerCode/main.rs - Session and transport
ServerCode/net/session.rs - Authoritative tick
ServerCode/engine/mod.rs - Combat simulation
ServerCode/combat/mod.rs - World and gameplay
ServerCode/entity/mod.rs - Game configuration
ServerCode/config/mod.rs - Inventory service
ServerCode/inventory/service.rs
Server services
- Persistence
ServerCode/storage/mod.rs - Web services
ServerCode/net/web/router.rs
Other components
- Player
- External clients
Connections 34
- Player → Client entry: starts
- Client entry → Client assembly: runs
HostCode/main.rs - Client assembly → Client flow: assembles
HostCode/launcher/mod.rs - Client assembly → Client networking: assembles
HostCode/launcher/mod.rs - Client assembly → Menu and loadout: assembles
HostCode/launcher/mod.rs - Client assembly → Combat HUD: assembles
HostCode/launcher/mod.rs - Client assembly → 3D world and camera: assembles
HostCode/launcher/mod.rs - Menu and loadout → Client networking: sends intent
HostCode/menu/mod.rs - Client networking → Session and transport: sends input
- Session and transport → Client networking: sends snapshots
- Client networking → Message protocol: uses messages
- Session and transport → Message protocol: uses messages
- Wire codec → Packet format: encodes
ContractCode/net/mod.rs - Packet format → Message protocol: carries messages
ContractCode/net/mod.rs - Client networking → Snapshot rendering: delivers snapshots
- Snapshot rendering → Combat HUD: feeds display
- Snapshot rendering → 3D world and camera: feeds scene
- Client networking → Remote resources: receives resources
HostCode/net/mod.rs - 3D world and camera → Camera rig: uses camera rig
HostCode/world/mod.rs - Combat HUD → Map HUD: includes map views
HostCode/hud/mod.rs - Combat HUD → Inventory UI: includes inventory UI
- Inventory UI → Client networking: sends item intent
- Server entry → Session and transport: starts service
- Session and transport → Authoritative tick: dispatches input
ServerCode/engine/mod.rs - Authoritative tick → Combat simulation: advances combat
ServerCode/engine/mod.rs - Combat simulation → World and gameplay: updates world
ServerCode/combat/mod.rs - Authoritative tick → Session and transport: publishes snapshots
- Game configuration → Authoritative tick: configures rules
- Map definitions → 3D world and camera: defines layout
ContractCode/map/mod.rs - Inventory service → World and gameplay: maintains inventory
- Authoritative tick → Persistence: persists state
- External clients → Web services: uses web API
- Element rules → Combat simulation: shares element data
- Operator catalog → Combat simulation: supplies roster
ServerCode/combat/mod.rs