diff options
| author | historia <[not public]> | 2026-10-01 18:36:36 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-01 18:36:36 -0400 |
| commit | 8a94f21bd47c0a00bc415395232dba22fa958837 (patch) | |
| tree | 3dc9492913315ac98b6eddaec4605e4344cde7d6 /dev_guide/bank.md | |
| parent | 4e2a95503e4ea4c830510f5aea23fac7948ddc41 (diff) | |
| download | thehouseoficarus-8a94f21bd47c0a00bc415395232dba22fa958837.tar.gz | |
remove: slop docs
Diffstat (limited to 'dev_guide/bank.md')
| -rw-r--r-- | dev_guide/bank.md | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/dev_guide/bank.md b/dev_guide/bank.md deleted file mode 100644 index ed890a7..0000000 --- a/dev_guide/bank.md +++ /dev/null @@ -1,26 +0,0 @@ -# Bank system internals - -Builder-facing bank documentation (booth object, room placement, player -commands) lives in [../building_guide/bank.md](../building_guide/bank.md). -This page covers the engine side. - -## Session state - -`StateBank` (defined in `internal/net/server.go`) is the session state for -the bank interface. Input is routed through `handleBankInput` in -`internal/game/cmd_bank.go`. - -## Player storage - -Bank items are stored in the `Player.Bank` field (`map[int]*InventorySlot`), -saved in character YAML. Bank slots are sequential and reuse freed slots. -There is no slot limit. - -## Command dispatch - -- `bank` is classified as `ClassActive` in `classifyCommand()` -- `bank` case in `executeCommand()` calls `doBank(sess)` -- `doUse()` checks for `"bank"` or `"bank booth"` targets and routes to - `doBank()` -- `doBank()` checks for a `bank_booth` object in the current room -- `handleBankInput()` dispatches deposit/withdraw/browse/leave commands |
