diff options
| author | historia <[not public]> | 2026-07-07 05:50:37 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-07-07 05:50:37 -0400 |
| commit | 3f30fa3eec9c2e2acf9a984ccefb9529a25e688a (patch) | |
| tree | b6c146ec7f3dc2ea21dbf8ee7612c3889d93ca1a /internal/game/cmd_room.go | |
| parent | a51f7a53aa2c487ebf94ba0363038574ae8bb590 (diff) | |
| download | thehouseoficarus-3f30fa3eec9c2e2acf9a984ccefb9529a25e688a.tar.gz | |
feat: add insert/remove room to context menu in admin web GUI to 'push' or 'pull' map rooms
Diffstat (limited to 'internal/game/cmd_room.go')
| -rw-r--r-- | internal/game/cmd_room.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/game/cmd_room.go b/internal/game/cmd_room.go index 971e298..3210ef5 100644 --- a/internal/game/cmd_room.go +++ b/internal/game/cmd_room.go @@ -51,6 +51,8 @@ func (g *Game) executeRoom(sess *net.Session, args []string, rawInput string) { g.roomSetColor(sess, rest) case "insert": g.roomInsert(sess, rest) + case "remove": + g.roomRemove(sess, rest) default: sess.WriteLine(fmt.Sprintf("Unknown room action: %s", action)) g.showRoomHelp(sess) @@ -73,6 +75,7 @@ func (g *Game) showRoomHelp(sess *net.Session) { sess.WriteLine(" room remspawn <item_id> — remove an item spawn") sess.WriteLine(" room color <spec|off> — set or clear room map color") sess.WriteLine(" room insert <direction> [name] — insert a new room into the exit, pushing rooms beyond") + sess.WriteLine(" room remove <direction> — delete the inserted room and pull the far end back") } func (g *Game) roomSetName(sess *net.Session, args []string) { |
