BlueGit

timfa questward

Files

questward / server / src / ecs / components.js

components.js

components.js 855 B Download Raw
1import { OVERWORLD_ID } from "../../../shared/world/dimensions.js";
2
3export 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});
30
31/** Default position component fields (tile coords + dimension). */
32export const PositionDefault = Object.freeze({
33 tileX: 0,
34 tileY: 0,
35 dimensionId: OVERWORLD_ID
36});