@rpg-engine/shared 0.9.10 → 0.9.11
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.
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { EntityType } from "./entity.types";
|
|
2
2
|
import { MapLayers } from "./maps.types";
|
|
3
|
+
interface IPosition {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
}
|
|
3
7
|
export interface IUseWithItem {
|
|
4
8
|
originItemId: string;
|
|
5
9
|
targetItemId: string;
|
|
@@ -18,6 +22,13 @@ export interface IUseWithEntity {
|
|
|
18
22
|
entityId: string;
|
|
19
23
|
entityType: EntityType;
|
|
20
24
|
}
|
|
25
|
+
export interface IUseWithSeed {
|
|
26
|
+
map: string;
|
|
27
|
+
isFertileGround: boolean;
|
|
28
|
+
coordinates: IPosition;
|
|
29
|
+
itemKey: string;
|
|
30
|
+
isEntity: boolean;
|
|
31
|
+
}
|
|
21
32
|
export interface IUseWithTileValidation {
|
|
22
33
|
status: boolean;
|
|
23
34
|
}
|
|
@@ -25,6 +36,8 @@ export declare enum UseWithSocketEvents {
|
|
|
25
36
|
UseWithItem = "UseWithItem",
|
|
26
37
|
UseWithTile = "UseWithTile",
|
|
27
38
|
UseWithEntity = "UseWithEntity",
|
|
28
|
-
UseWithTileValidation = "UseWithTileValidation"
|
|
39
|
+
UseWithTileValidation = "UseWithTileValidation",
|
|
40
|
+
UseWithSeed = "UseWithSeed"
|
|
29
41
|
}
|
|
42
|
+
export {};
|
|
30
43
|
//# sourceMappingURL=useWith.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWith.types.d.ts","sourceRoot":"","sources":["../../src/types/useWith.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"useWith.types.d.ts","sourceRoot":"","sources":["../../src/types/useWith.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,UAAU,SAAS;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,YAAY;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,YAAY;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE;QACV,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;QACV,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,SAAS,CAAC;KAClB,CAAC;CACH;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,UAAU,CAAC;CACxB;AAED,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,eAAe,EAAE,OAAO,CAAC;IACzB,WAAW,EAAE,SAAS,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,OAAO,CAAC;CACjB;AAID,oBAAY,mBAAmB;IAC7B,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,aAAa,kBAAkB;IAC/B,qBAAqB,0BAA0B;IAC/C,WAAW,gBAAgB;CAC5B"}
|
|
@@ -7,5 +7,6 @@ var UseWithSocketEvents;
|
|
|
7
7
|
UseWithSocketEvents["UseWithTile"] = "UseWithTile";
|
|
8
8
|
UseWithSocketEvents["UseWithEntity"] = "UseWithEntity";
|
|
9
9
|
UseWithSocketEvents["UseWithTileValidation"] = "UseWithTileValidation";
|
|
10
|
+
UseWithSocketEvents["UseWithSeed"] = "UseWithSeed";
|
|
10
11
|
})(UseWithSocketEvents = exports.UseWithSocketEvents || (exports.UseWithSocketEvents = {}));
|
|
11
12
|
//# sourceMappingURL=useWith.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWith.types.js","sourceRoot":"","sources":["../../src/types/useWith.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"useWith.types.js","sourceRoot":"","sources":["../../src/types/useWith.types.ts"],"names":[],"mappings":";;;AA4CA,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,kDAA2B,CAAA;IAC3B,kDAA2B,CAAA;IAC3B,sDAA+B,CAAA;IAC/B,sEAA+C,CAAA;IAC/C,kDAA2B,CAAA;AAC7B,CAAC,EANW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAM9B"}
|