@tsukilabs/nil-bindings 0.7.11 → 0.7.13

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.
@@ -0,0 +1,9 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ import { MarketFee } from './MarketFee';
5
+ import { WorldId } from './WorldId';
6
+ export type CheatSetMarketFeeRequest = {
7
+ world: WorldId;
8
+ fee: MarketFee;
9
+ };
package/dist/Event.d.ts CHANGED
@@ -18,6 +18,9 @@ export type Event = {
18
18
  } | {
19
19
  "kind": "drop";
20
20
  world: WorldId;
21
+ } | {
22
+ "kind": "market";
23
+ world: WorldId;
21
24
  } | {
22
25
  "kind": "military";
23
26
  world: WorldId;
@@ -0,0 +1,7 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ import { WorldId } from './WorldId';
5
+ export type GetMarketFeeRequest = {
6
+ world: WorldId;
7
+ };
@@ -0,0 +1,5 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ import { MarketFee } from './MarketFee';
5
+ export type GetMarketFeeResponse = MarketFee;
@@ -0,0 +1,7 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ import { WorldId } from './WorldId';
5
+ export type GetMarketRequest = {
6
+ world: WorldId;
7
+ };
@@ -0,0 +1,5 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ import { Market } from './Market';
5
+ export type GetMarketResponse = Market;
@@ -0,0 +1,7 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ import { WorldId } from './WorldId';
5
+ export type GetWorldRulersRequest = {
6
+ world: WorldId;
7
+ };
@@ -0,0 +1,5 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ import { Ruler } from './Ruler';
5
+ export type GetWorldRulersResponse = Array<Ruler>;
package/dist/Gold.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ export type Gold = number;
@@ -0,0 +1,9 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ import { MarketFee } from './MarketFee';
5
+ import { MarketVault } from './MarketVault';
6
+ export type Market = {
7
+ vault: MarketVault;
8
+ fee: MarketFee;
9
+ };
@@ -0,0 +1,4 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ export type MarketFee = number;
@@ -0,0 +1,7 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ import { Resources } from './Resources';
5
+ export type MarketVault = {
6
+ resources: Resources;
7
+ };
package/dist/Player.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  //! Copyright (C) Call of Nil contributors
2
2
  //! SPDX-License-Identifier: AGPL-3.0-only
3
3
 
4
+ import { Gold } from './Gold';
4
5
  import { Influence } from './Influence';
5
6
  import { PlayerId } from './PlayerId';
6
7
  import { PlayerStatus } from './PlayerStatus';
@@ -9,5 +10,6 @@ export type Player = {
9
10
  id: PlayerId;
10
11
  status: PlayerStatus;
11
12
  resources: Resources;
13
+ gold: Gold;
12
14
  influence: Influence;
13
15
  };
@@ -5,6 +5,9 @@ import { Food } from './Food';
5
5
  import { Iron } from './Iron';
6
6
  import { Stone } from './Stone';
7
7
  import { Wood } from './Wood';
8
+ /**
9
+ * Basic resources, such as food.
10
+ */
8
11
  export type Resources = {
9
12
  food: Food;
10
13
  iron: Iron;
@@ -0,0 +1,11 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ import { Resources } from './Resources';
5
+ import { Ruler } from './Ruler';
6
+ import { WorldId } from './WorldId';
7
+ export type SendResourcesRequest = {
8
+ world: WorldId;
9
+ recipient: Ruler;
10
+ resources: Resources;
11
+ };
@@ -5,6 +5,7 @@ import { BotAdvancedStartRatio } from './BotAdvancedStartRatio';
5
5
  import { BotDensity } from './BotDensity';
6
6
  import { ContinentSize } from './ContinentSize';
7
7
  import { Locale } from './Locale';
8
+ import { MarketFee } from './MarketFee';
8
9
  import { WorldName } from './WorldName';
9
10
  import { WorldSpeed } from './WorldSpeed';
10
11
  import { WorldUnitSpeed } from './WorldUnitSpeed';
@@ -17,4 +18,5 @@ export type WorldOptions = {
17
18
  unitSpeed?: WorldUnitSpeed | null;
18
19
  botDensity?: BotDensity | null;
19
20
  botAdvancedStartRatio?: BotAdvancedStartRatio | null;
21
+ marketFee?: MarketFee | null;
20
22
  };
package/dist/index.d.ts CHANGED
@@ -103,6 +103,7 @@ export type { CheatSetBotEthicsRequest } from './CheatSetBotEthicsRequest';
103
103
  export type { CheatSetBuildingLevelRequest } from './CheatSetBuildingLevelRequest';
104
104
  export type { CheatSetFoodRequest } from './CheatSetFoodRequest';
105
105
  export type { CheatSetIronRequest } from './CheatSetIronRequest';
106
+ export type { CheatSetMarketFeeRequest } from './CheatSetMarketFeeRequest';
106
107
  export type { CheatSetMaxFoodRequest } from './CheatSetMaxFoodRequest';
107
108
  export type { CheatSetMaxInfrastructureRequest } from './CheatSetMaxInfrastructureRequest';
108
109
  export type { CheatSetMaxIronRequest } from './CheatSetMaxIronRequest';
@@ -172,6 +173,10 @@ export type { GetIdleArmiesCoordsRequest } from './GetIdleArmiesCoordsRequest';
172
173
  export type { GetIdleArmiesCoordsResponse } from './GetIdleArmiesCoordsResponse';
173
174
  export type { GetManeuverRequest } from './GetManeuverRequest';
174
175
  export type { GetManeuverResponse } from './GetManeuverResponse';
176
+ export type { GetMarketFeeRequest } from './GetMarketFeeRequest';
177
+ export type { GetMarketFeeResponse } from './GetMarketFeeResponse';
178
+ export type { GetMarketRequest } from './GetMarketRequest';
179
+ export type { GetMarketResponse } from './GetMarketResponse';
175
180
  export type { GetPlayerCoordsRequest } from './GetPlayerCoordsRequest';
176
181
  export type { GetPlayerCoordsResponse } from './GetPlayerCoordsResponse';
177
182
  export type { GetPlayerIdsRequest } from './GetPlayerIdsRequest';
@@ -238,8 +243,11 @@ export type { GetWorldPlayersRequest } from './GetWorldPlayersRequest';
238
243
  export type { GetWorldPlayersResponse } from './GetWorldPlayersResponse';
239
244
  export type { GetWorldPrecursorsRequest } from './GetWorldPrecursorsRequest';
240
245
  export type { GetWorldPrecursorsResponse } from './GetWorldPrecursorsResponse';
246
+ export type { GetWorldRulersRequest } from './GetWorldRulersRequest';
247
+ export type { GetWorldRulersResponse } from './GetWorldRulersResponse';
241
248
  export type { GetWorldStatsRequest } from './GetWorldStatsRequest';
242
249
  export type { GetWorldStatsResponse } from './GetWorldStatsResponse';
250
+ export type { Gold } from './Gold';
243
251
  export type { Influence } from './Influence';
244
252
  export type { Infrastructure } from './Infrastructure';
245
253
  export type { InfrastructureRequirements } from './InfrastructureRequirements';
@@ -259,6 +267,9 @@ export type { ManeuverId } from './ManeuverId';
259
267
  export type { ManeuverKind } from './ManeuverKind';
260
268
  export type { ManeuverRequest } from './ManeuverRequest';
261
269
  export type { ManeuverState } from './ManeuverState';
270
+ export type { Market } from './Market';
271
+ export type { MarketFee } from './MarketFee';
272
+ export type { MarketVault } from './MarketVault';
262
273
  export type { Military } from './Military';
263
274
  export type { MineId } from './MineId';
264
275
  export type { MineProduction } from './MineProduction';
@@ -313,6 +324,7 @@ export type { SearchCityRequest } from './SearchCityRequest';
313
324
  export type { SearchCityResponse } from './SearchCityResponse';
314
325
  export type { SearchPublicCityRequest } from './SearchPublicCityRequest';
315
326
  export type { SearchPublicCityResponse } from './SearchPublicCityResponse';
327
+ export type { SendResourcesRequest } from './SendResourcesRequest';
316
328
  export type { ServerAddr } from './ServerAddr';
317
329
  export type { ServerKind } from './ServerKind';
318
330
  export type { SetPlayerReadyRequest } from './SetPlayerReadyRequest';
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "0.7.11";
2
+ var version = "0.7.13";
3
3
  //#endregion
4
4
  //#region src/env_Var.ts
5
5
  var env_Var = /* @__PURE__ */ function(env_Var) {
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@tsukilabs/nil-bindings",
3
- "version": "0.7.11",
3
+ "version": "0.7.13",
4
4
  "description": "TypeScript bindings for Call of Nil",
5
5
  "type": "module",
6
- "packageManager": "pnpm@11.19.0",
6
+ "packageManager": "pnpm@11.20.0",
7
7
  "license": "AGPL-3.0-only",
8
8
  "private": false,
9
9
  "homepage": "https://nil.dev.br",