Skip to content

5.2 Room File Structure

Ted Senft edited this page Jul 9, 2023 · 1 revision

Memory Graph Structure:

flowchart
RoomReg(RoomRegistrationNode)
RoomChunk(RoomChunkNode)
RoomOwner(RoomOwnerNode)
RoomSpawn(RoomSpawnNode)
RoomReg -- RoomChunkEdge --> RoomChunk
RoomReg -- RoomOwnerEdge --> RoomOwner
RoomReg -- RoomSpawnEdge --> RoomSpawn 
Loading
erDiagram
RoomRegistrationNode||--|{RoomChunkNode : RoomChunkEdge
RoomRegistrationNode||--||RoomOwnerNode : RoomOwnerEdge
RoomRegistrationNode||--|{RoomSpawnNode : RoomSpawnEdge
Loading
  • rooms: ListTag

    • node_id: UUID
    • name: string
    • center: Vec3
    • dimensions: Vec3i
    • default_machine_color: int
  • spawns: CompoundTag

    • <room_code>: CompoundTag
      • default_spawn: CompoundTag
        • node_id: UUID
        • spawn_position: Vec3
        • spawn_rotation: Vec2
      • player_spawns: List
        • node_id: UUID
        • player_id: UUID
        • spawn_position: Vec3
        • spawn_rotation: Vec2