| 1 | import { OVERWORLD_ID } from "../../../shared/world/dimensions.js"; |
| 2 | |
| 3 | export const Component = Object.freeze({ |
| 4 | position: "position", |
| 5 | movement: "movement", |
| 6 | path: "path", |
| 7 | flight: "flight", |
| 8 | appearance: "appearance", |
| 9 | character: "character", |
| 10 | networkIdentity: "networkIdentity", |
| 11 | chunkLoader: "chunkLoader", |
| 12 | persistent: "persistent", |
| 13 | inventory: "inventory", |
| 14 | equipment: "equipment", |
| 15 | vault: "vault", |
| 16 | health: "health", |
| 17 | creature: "creature", |
| 18 | spawnOrigin: "spawnOrigin", |
| 19 | combat: "combat", |
| 20 | skills: "skills", |
| 21 | follow: "follow", |
| 22 | dead: "dead", |
| 23 | stamina: "stamina", |
| 24 | gather: "gather", |
| 25 | shop: "shop", |
| 26 | statusEffects: "statusEffects", |
| 27 | spells: "spells", |
| 28 | spellcasting: "spellcasting", |
| 29 | /** Temporary summoned companion (Shade, jadeite fairy). */ |
| 30 | summon: "summon", |
| 31 | /** Player chunk residency for aggro peace (sinceMs when current chunk was entered). */ |
| 32 | chunkPresence: "chunkPresence", |
| 33 | /** |
| 34 | * Snapshot for ConditionSet evaluation on workers (quests / dialogue / visited dims). |
| 35 | * Inventory, skills, HP come from live ECS components. |
| 36 | */ |
| 37 | conditionAccess: "conditionAccess" |
| 38 | }); |
| 39 | |
| 40 | /** Default position component fields (tile coords + dimension). */ |
| 41 | export const PositionDefault = Object.freeze({ |
| 42 | tileX: 0, |
| 43 | tileY: 0, |
| 44 | dimensionId: OVERWORLD_ID |
| 45 | }); |