blob: cc1153575c35096d983b0ee455533071a24fe1e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Package world manages rooms, exits, ground items, mob instances,
// and object instance state for the game world.
//
// Rooms are loaded from YAML files on every access (live-editable). Exits
// support conditional blocking via the action.Condition system. Ground
// items have independent despawn timers and combat-loot reservations.
//
// Object instance state (ObjState) tracks per-instance properties:
// depletion with regen timers, shared depletion for trees with countdown,
// quality for fire objects, and wandering for fishing spots.
//
// MobDef and MobInstance cover mob definitions and runtime instances.
// The MobStore manages YAML loading, instance seeding, and per-room
// mob lists. Mobs wander via legal (unconditioned) room exits.
//
// WordPrefixMatch provides bidirectional prefix matching used by
// commands and object lookups.
package world
|