room.go 181 B

12345678910111213141516
  1. package world
  2. type Direction string
  3. type Exit struct {
  4. Direction
  5. ToRoomID int
  6. toRoom * Room
  7. }
  8. type Room struct {
  9. Entity
  10. Exits map[Direction]Exit
  11. }