(world: World( curr_room: "Brig", rooms: { "Brig": Room( name: "Brig", desc: "You are in a small wooden room with a wood pillar in the middle. The ground slowly creaks and rocks beneath you.", paths: [ Pathway( directions: ["door", "north"], target: "Hold 1", desc: "There is a door on the north side.", inspect: "The door is plain and wooden.", opening: Some(Closed), lock: Some(Locked("")), ), ] ), "Hold 1": Room( name: "Hold", desc: "You are in the middle of a spacious hold. Crates and barrels array the sides.", paths: [ Pathway( directions: ["door", "south"], target: "Brig", desc: "There is a door at the south end of the hold.", inspect: "The door is plain and wooden.", opening: Some(Open), ), Pathway( directions: ["north"], target: "Hold 2", desc: "The hold continues to the north.", inspect: "This end of the hold is too dark to see into.", ), ], ), "Hold 2": Room( name: "Hold", desc: "You are at the end of a spacious hold. Crates and barrels array the sides.", paths: [ Pathway( directions: ["hatch", "up"], target: "Crew Deck 1", desc: "There is a hatch above you.", inspect: "It looks like a metal grate.", opening: Some(Closed), ), Pathway( directions: ["south"], target: "Hold 1", desc: "The hold continues to the south.", inspect: "The middle of the hold is lit by a lantern.", ), ] ), "Crew Deck 1": Room( name: "Crew Deck", desc: "You are on a deck with dirty hammocks hanging everywhere.", paths: [ Pathway( directions: ["hatch", "down"], target: "Hold 2", desc: "There is a hatch on the ground", inspect: "It looks like a metal grate.", opening: Some(Open), ), Pathway( directions: ["south"], target: "Crew Deck 2", desc: "The deck continues to the south.", inspect: "There is a doorway at the south end of the deck.", ), ] ), "Crew Deck 2": Room( name: "Crew Deck", desc: "You are on a deck with dirty hammocks hanging everywhere.", paths: [ Pathway( directions: ["opening", "up"], target: "Cannon Deck 2", desc: "There is an opening above you.", inspect: "You think you might be able to see the light of day.", ), Pathway( directions: ["north"], target: "Crew Deck 1", desc: "The deck continues to the north.", inspect: "There is a hatch at the north end of the deck.", ), Pathway( directions: ["empty doorway", "south"], target: "Infirmary", desc: "There is an empty doorway to the south.", inspect: "The doorway flickers with lantern light.", ), ] ), "Infirmary": Room( name: "Infirmary", desc: "You are in a room with a few empty beds against one wall.", paths: [ Pathway( directions: ["doorway", "north"], target: "Crew Deck 2", desc: "The doorway leads back into the crew's quarters.", inspect: "The doorway flickers with lantern light.", ), ] ), "Cannon Deck 1": Room( name: "Cannon Deck", desc: "This deck has cannons lining each side.", paths: [ Pathway( directions: ["south"], target: "Cannon Deck 2", desc: "The deck continues to the south.", inspect: "This ship sure has a lot of cannons.", ), Pathway( directions: ["hatch", "up"], target: "Main Deck", desc: "A hatch above you bring in bright sunlight.", inspect: "The hatch is a double-hinged grate made of old rusty metal.", opening: Some(Closed), ), ], ), "Cannon Deck 2": Room( name: "Cannon Deck", desc: "This deck has cannons lining each side.", paths: [ Pathway( directions: ["north"], target: "Cannon Deck 1", desc: "The deck continues to the north.", inspect: "This ship sure has a lot of cannons.", ), Pathway( directions: ["doorway", "south"], target: "Empty Room", desc: "There is a doorway to the south.", inspect: "The doorway is completely dark.", ), Pathway( directions: ["opening", "down"], target: "Crew Deck 2", desc: "There is an opening below you.", inspect: "You can see hammocks through the opening.", ), ] ), "Empty Room": Room( name: "Empty Room", desc: "The room is dark and empty.", paths: [ Pathway( directions: ["doorway", "north"], target: "Cannon Deck 2", desc: "The doorway leads back into the cannon deck.", inspect: "You see many cannons.", ), ] ), "Main Deck": Room( name: "Main Deck", desc: "The vast open sea surrounds the ship you stand on.", paths: [ Pathway( directions: ["hatch", "down"], target: "Cannon Deck 1", desc: "There is a hatch below you.", inspect: "The hatch is a double-hinged grate made of old rusty metal.", opening: Some(Open), ), Pathway( directions: ["mast", "platform", "up"], target: "Platform", desc: "There is a platform above you on the central mast.", inspect: "The platform can be reached through holds on the mast.", ), Pathway( directions: ["stairs", "south"], target: "Sterncastle", desc: "Stairs towards the south lead upwards onto the sterncastle.", inspect: "The stairs are old and dirty.", ), Pathway( directions: ["door"], target: "Captains Cabin", desc: "There is door on the wall beneath the sterncastle of the ship.", inspect: "The door is large with a small dim window in the center.", opening: Some(Closed), ), ] ), "Sterncastle": Room( name: "Sterncastle", desc: "You are on the sterncastle of the ship. There is another mast in the center and the ships wheel.", paths: [ Pathway( directions: ["stairs", "north", "down"], target: "Main Deck", desc: "The stairs lead back onto the main deck.", inspect: "The stairs are old and dirty.", ), ], ), "Captains Cabin": Room( name: "Captains Cabin", desc: "You stand in a large cabin with the captains belongings littering the ground and hanging on the walls.", paths: [ Pathway( directions: ["door", "north"], target: "Main Deck", desc: "There is door at the north end of the room.", inspect: "The door is large with a small dim window in the center.", opening: Some(Open), ), ], ), "Platform": Room( name: "Platform", desc: "You stand on a platform several feet above the main deck.", paths: [ Pathway( directions: ["down"], target: "Main Deck", desc: "The main deck is below you.", inspect: "The main deck is several feet below.", ), Pathway( directions: ["crows nest", "up"], target: "Crows Nest", desc: "There is a crows nest above you on the central mast.", inspect: "The crows nest can be reached through holds and rigging on the mast.", ), ] ), "Crows Nest": Room( name: "Crows Nest", desc: "You are in a crows nest overlooking the entire ship and sea.", paths: [ Pathway( directions: ["mast", "platform", "down"], target: "Platform", desc: "There is a platform below you on the central mast.", inspect: "The platform can be reached through holds on the mast.", ), ] ), }))