Versions in this module Expand all Collapse all v1 v1.2.3 Jul 18, 2022 v0 v0.1.0 Jul 18, 2022 Changes in this version + const RoomExitTypeDirection + const RoomExitTypeNormal + const RoomExitTypeTeleport + func RoomToJSONString(room Room) string + func RoomsToJSONString(rooms Rooms) string + type Action struct + Description string + Name string + Params map[string]interface{} + Response string + Type RoomActionType + type Actions []Action + type Characters []string + type Exit struct + Description string + Hidden bool + Name string + Params map[string]interface{} + Target string + Type RoomExitType + type Exits []Exit + type Items []string + type Room struct + Actions Actions + Area string + AreaType string + Characters Characters + Coords ... + Description string + Exits Exits + Items Items + Meta ... + Name string + RoomType string + Tags []string + func RoomFromJSONString(input string) (*Room, error) + func (room *Room) AddCharacter(character string) error + func (room *Room) GetExit(exit string) (Exit, bool) + func (room *Room) IsCharacterInRoom(character string) bool + func (room *Room) RemoveCharacter(character string) error + type RoomActionType string + const RoomActionTypeResponse + const RoomActionTypeRoomResponse + const RoomActionTypeScript + type RoomExitType string + type Rooms []*Room + func RoomsFromJSONString(input string) (Rooms, error)