@rpg-engine/shared 0.5.54 → 0.5.56
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.
|
@@ -2,14 +2,37 @@ export declare enum CharacterTradeSocketEvents {
|
|
|
2
2
|
TradeWithNPC = "TradeWithNPC"
|
|
3
3
|
}
|
|
4
4
|
export declare type TradeTransactionType = "buy" | "sell";
|
|
5
|
-
export interface
|
|
5
|
+
export interface ITradeRequestItem {
|
|
6
6
|
key: string;
|
|
7
|
-
name?: string;
|
|
8
7
|
qty: number;
|
|
9
8
|
}
|
|
9
|
+
export interface ITransactionItem {
|
|
10
|
+
key: string;
|
|
11
|
+
itemId: string;
|
|
12
|
+
qty?: number;
|
|
13
|
+
price: number;
|
|
14
|
+
texturePath: string;
|
|
15
|
+
name: string;
|
|
16
|
+
}
|
|
10
17
|
export interface ICharacterNPCTradeRequest {
|
|
11
18
|
npcId: string;
|
|
12
19
|
type: TradeTransactionType;
|
|
13
|
-
items:
|
|
20
|
+
items: ITradeRequestItem[];
|
|
21
|
+
}
|
|
22
|
+
export interface ICharacterNPCTradeInit {
|
|
23
|
+
npcId: string;
|
|
24
|
+
type: TradeTransactionType;
|
|
25
|
+
}
|
|
26
|
+
export interface ICharacterNPCTradeInitBuyResponse {
|
|
27
|
+
npcId: string;
|
|
28
|
+
type: TradeTransactionType;
|
|
29
|
+
traderItems: ITransactionItem[];
|
|
30
|
+
characterAvailableGold: number;
|
|
31
|
+
}
|
|
32
|
+
export interface ICharacterNPCTradeInitSellResponse {
|
|
33
|
+
npcId: string;
|
|
34
|
+
type: TradeTransactionType;
|
|
35
|
+
characterItems: ITransactionItem[];
|
|
36
|
+
characterAvailableGold: number;
|
|
14
37
|
}
|
|
15
38
|
//# sourceMappingURL=trade.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trade.types.d.ts","sourceRoot":"","sources":["../../src/types/trade.types.ts"],"names":[],"mappings":"AAAA,oBAAY,0BAA0B;IACpC,YAAY,iBAAiB;CAC9B;AAED,oBAAY,oBAAoB,GAAG,KAAK,GAAG,MAAM,CAAC;AAElD,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"trade.types.d.ts","sourceRoot":"","sources":["../../src/types/trade.types.ts"],"names":[],"mappings":"AAAA,oBAAY,0BAA0B;IACpC,YAAY,iBAAiB;CAC9B;AAED,oBAAY,oBAAoB,GAAG,KAAK,GAAG,MAAM,CAAC;AAElD,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,yBAAyB;IAExC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,oBAAoB,CAAC;IAC3B,KAAK,EAAE,iBAAiB,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,sBAAsB;IAErC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,oBAAoB,CAAC;CAC5B;AAED,MAAM,WAAW,iCAAiC;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,oBAAoB,CAAC;IAC3B,WAAW,EAAE,gBAAgB,EAAE,CAAC;IAChC,sBAAsB,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,kCAAkC;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,oBAAoB,CAAC;IAC3B,cAAc,EAAE,gBAAgB,EAAE,CAAC;IACnC,sBAAsB,EAAE,MAAM,CAAC;CAChC"}
|