@rpg-engine/shared 0.2.48 → 0.2.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from "./constants/date.constants";
1
2
  export * from "./constants/npc.constants";
2
3
  export * from "./constants/socket.constants";
3
4
  export * from "./constants/world.constants";
@@ -12,9 +13,11 @@ export * from "./types/asset.types";
12
13
  export * from "./types/auth.types";
13
14
  export * from "./types/battle.types";
14
15
  export * from "./types/character.types";
16
+ export * from "./types/chat.types";
15
17
  export * from "./types/device.types";
16
18
  export * from "./types/env.types";
17
19
  export * from "./types/googleOAuth.types";
20
+ export * from "./types/item.types";
18
21
  export * from "./types/maps.types";
19
22
  export * from "./types/notification.types";
20
23
  export * from "./types/npc.types";
@@ -29,5 +32,4 @@ export * from "./types/tiled.types";
29
32
  export * from "./types/translation.types";
30
33
  export * from "./types/user.types";
31
34
  export * from "./types/validation.types";
32
- export * from "./types/chat.types";
33
35
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,c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AAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC"}
package/dist/index.js CHANGED
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./constants/date.constants"), exports);
17
18
  __exportStar(require("./constants/npc.constants"), exports);
18
19
  __exportStar(require("./constants/socket.constants"), exports);
19
20
  __exportStar(require("./constants/world.constants"), exports);
@@ -28,9 +29,11 @@ __exportStar(require("./types/asset.types"), exports);
28
29
  __exportStar(require("./types/auth.types"), exports);
29
30
  __exportStar(require("./types/battle.types"), exports);
30
31
  __exportStar(require("./types/character.types"), exports);
32
+ __exportStar(require("./types/chat.types"), exports);
31
33
  __exportStar(require("./types/device.types"), exports);
32
34
  __exportStar(require("./types/env.types"), exports);
33
35
  __exportStar(require("./types/googleOAuth.types"), exports);
36
+ __exportStar(require("./types/item.types"), exports);
34
37
  __exportStar(require("./types/maps.types"), exports);
35
38
  __exportStar(require("./types/notification.types"), exports);
36
39
  __exportStar(require("./types/npc.types"), exports);
@@ -45,5 +48,4 @@ __exportStar(require("./types/tiled.types"), exports);
45
48
  __exportStar(require("./types/translation.types"), exports);
46
49
  __exportStar(require("./types/user.types"), exports);
47
50
  __exportStar(require("./types/validation.types"), exports);
48
- __exportStar(require("./types/chat.types"), exports);
49
51
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,+DAA6C;AAC7C,8DAA4C;AAC5C,oDAAkC;AAClC,oDAAkC;AAClC,sDAAoC;AACpC,oDAAkC;AAClC,oDAAkC;AAClC,0DAAwC;AACxC,oDAAkC;AAClC,sDAAoC;AACpC,qDAAmC;AACnC,uDAAqC;AACrC,0DAAwC;AACxC,uDAAqC;AACrC,oDAAkC;AAClC,4DAA0C;AAC1C,qDAAmC;AACnC,6DAA2C;AAC3C,oDAAkC;AAClC,2DAAyC;AACzC,uDAAqC;AACrC,6DAA2C;AAC3C,yDAAuC;AACvC,sDAAoC;AACpC,uDAAqC;AACrC,uDAAqC;AACrC,sDAAoC;AACpC,4DAA0C;AAC1C,qDAAmC;AACnC,2DAAyC;AACzC,qDAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,4DAA0C;AAC1C,+DAA6C;AAC7C,8DAA4C;AAC5C,oDAAkC;AAClC,oDAAkC;AAClC,sDAAoC;AACpC,oDAAkC;AAClC,oDAAkC;AAClC,0DAAwC;AACxC,oDAAkC;AAClC,sDAAoC;AACpC,qDAAmC;AACnC,uDAAqC;AACrC,0DAAwC;AACxC,qDAAmC;AACnC,uDAAqC;AACrC,oDAAkC;AAClC,4DAA0C;AAC1C,qDAAmC;AACnC,qDAAmC;AACnC,6DAA2C;AAC3C,oDAAkC;AAClC,2DAAyC;AACzC,uDAAqC;AACrC,6DAA2C;AAC3C,yDAAuC;AACvC,sDAAoC;AACpC,uDAAqC;AACrC,uDAAqC;AACrC,sDAAoC;AACpC,4DAA0C;AAC1C,qDAAmC;AACnC,2DAAyC"}
@@ -0,0 +1,57 @@
1
+ import { IResource } from "./resource.types";
2
+ export declare enum ItemType {
3
+ Weapon = "Weapon",
4
+ Armor = "Armor",
5
+ Accessory = "Accessory",
6
+ Jewelry = "Jewelry",
7
+ Consumable = "Consumable",
8
+ CraftMaterial = "CraftMaterial",
9
+ Quest = "Quest",
10
+ Information = "Information",
11
+ Tool = "Tool",
12
+ Container = "Container",
13
+ Other = "Other"
14
+ }
15
+ export declare enum ItemSlotType {
16
+ Head = "Head",
17
+ Neck = "Neck",
18
+ Torso = "Torso",
19
+ LeftHand = "LeftHand",
20
+ RightHand = "RightHand",
21
+ Waist = "Waist",
22
+ Legs = "Legs",
23
+ Feet = "Feet",
24
+ Ring = "Ring",
25
+ Accessory = "Accessory",
26
+ Inventory = "Inventory"
27
+ }
28
+ export interface IItem extends IResource {
29
+ type: ItemType;
30
+ name: string;
31
+ description: string;
32
+ fullDescription: string;
33
+ textureKey: string;
34
+ attack?: string;
35
+ defense?: string;
36
+ weight: number;
37
+ isEquipable: boolean;
38
+ equipSlotType?: ItemSlotType;
39
+ isStackable: boolean;
40
+ maxStackSize?: boolean;
41
+ isUsable: boolean;
42
+ usableEffectKey?: string;
43
+ isStorable: boolean;
44
+ x?: number;
45
+ y?: number;
46
+ scene?: number;
47
+ isContainer?: boolean;
48
+ container?: string;
49
+ }
50
+ export interface IItemContainer extends IResource {
51
+ owner: string;
52
+ name: string;
53
+ slotQty: number;
54
+ items: IItem[];
55
+ allowedItemTypes?: ItemType[];
56
+ }
57
+ //# sourceMappingURL=item.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"item.types.d.ts","sourceRoot":"","sources":["../../src/types/item.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,oBAAY,QAAQ;IAClB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,aAAa,kBAAkB;IAC/B,KAAK,UAAU;IACf,WAAW,gBAAgB;IAC3B,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,KAAK,UAAU;CAChB;AAED,oBAAY,YAAY;IACtB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,SAAS,cAAc;CACxB;AAED,MAAM,WAAW,KAAM,SAAQ,SAAS;IACtC,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,YAAY,CAAC;IAC7B,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,cAAe,SAAQ,SAAS;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,KAAK,EAAE,CAAC;IACf,gBAAgB,CAAC,EAAE,QAAQ,EAAE,CAAC;CAC/B"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ItemSlotType = exports.ItemType = void 0;
4
+ var ItemType;
5
+ (function (ItemType) {
6
+ ItemType["Weapon"] = "Weapon";
7
+ ItemType["Armor"] = "Armor";
8
+ ItemType["Accessory"] = "Accessory";
9
+ ItemType["Jewelry"] = "Jewelry";
10
+ ItemType["Consumable"] = "Consumable";
11
+ ItemType["CraftMaterial"] = "CraftMaterial";
12
+ ItemType["Quest"] = "Quest";
13
+ ItemType["Information"] = "Information";
14
+ ItemType["Tool"] = "Tool";
15
+ ItemType["Container"] = "Container";
16
+ ItemType["Other"] = "Other";
17
+ })(ItemType = exports.ItemType || (exports.ItemType = {}));
18
+ var ItemSlotType;
19
+ (function (ItemSlotType) {
20
+ ItemSlotType["Head"] = "Head";
21
+ ItemSlotType["Neck"] = "Neck";
22
+ ItemSlotType["Torso"] = "Torso";
23
+ ItemSlotType["LeftHand"] = "LeftHand";
24
+ ItemSlotType["RightHand"] = "RightHand";
25
+ ItemSlotType["Waist"] = "Waist";
26
+ ItemSlotType["Legs"] = "Legs";
27
+ ItemSlotType["Feet"] = "Feet";
28
+ ItemSlotType["Ring"] = "Ring";
29
+ ItemSlotType["Accessory"] = "Accessory";
30
+ ItemSlotType["Inventory"] = "Inventory";
31
+ })(ItemSlotType = exports.ItemSlotType || (exports.ItemSlotType = {}));
32
+ //# sourceMappingURL=item.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"item.types.js","sourceRoot":"","sources":["../../src/types/item.types.ts"],"names":[],"mappings":";;;AAEA,IAAY,QAYX;AAZD,WAAY,QAAQ;IAClB,6BAAiB,CAAA;IACjB,2BAAe,CAAA;IACf,mCAAuB,CAAA;IACvB,+BAAmB,CAAA;IACnB,qCAAyB,CAAA;IACzB,2CAA+B,CAAA;IAC/B,2BAAe,CAAA;IACf,uCAA2B,CAAA;IAC3B,yBAAa,CAAA;IACb,mCAAuB,CAAA;IACvB,2BAAe,CAAA;AACjB,CAAC,EAZW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAYnB;AAED,IAAY,YAYX;AAZD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,6BAAa,CAAA;IACb,+BAAe,CAAA;IACf,qCAAqB,CAAA;IACrB,uCAAuB,CAAA;IACvB,+BAAe,CAAA;IACf,6BAAa,CAAA;IACb,6BAAa,CAAA;IACb,6BAAa,CAAA;IACb,uCAAuB,CAAA;IACvB,uCAAuB,CAAA;AACzB,CAAC,EAZW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAYvB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/shared",
3
- "version": "0.2.48",
3
+ "version": "0.2.51",
4
4
  "description": "> TODO: description",
5
5
  "author": "Joao Paulo Furtado <joaopaulofurtado@live.com>",
6
6
  "homepage": "",