@tsukilabs/nil-bindings 0.7.20 → 0.7.22

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,7 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ import { Coord } from './Coord';
5
+ export type Capital = {
6
+ coord: Coord | null;
7
+ };
@@ -0,0 +1,9 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ import { Ruler } from './Ruler';
5
+ import { WorldId } from './WorldId';
6
+ export type CheatGetInfluenceRequest = {
7
+ world: WorldId;
8
+ ruler?: Ruler | null;
9
+ };
@@ -0,0 +1,5 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ import { Influence } from './Influence';
5
+ export type CheatGetInfluenceResponse = Influence;
@@ -0,0 +1,11 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ import { Influence } from './Influence';
5
+ import { Ruler } from './Ruler';
6
+ import { WorldId } from './WorldId';
7
+ export type CheatSetInfluenceRequest = {
8
+ world: WorldId;
9
+ ruler?: Ruler | null;
10
+ influence: Influence;
11
+ };
@@ -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 GetCityLimitRequest = {
6
+ world: WorldId;
7
+ };
@@ -0,0 +1,4 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ export type GetCityLimitResponse = number;
@@ -0,0 +1,8 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ import { Resources } from './Resources';
5
+ /**
6
+ * Resources required to acquire one unit of influence.
7
+ */
8
+ export type InfluenceResourceCost = Resources;
package/dist/Market.d.ts CHANGED
@@ -2,10 +2,8 @@
2
2
  //! SPDX-License-Identifier: AGPL-3.0-only
3
3
 
4
4
  import { MarketFee } from './MarketFee';
5
- import { MarketPriceTable } from './MarketPriceTable';
6
5
  import { MarketVault } from './MarketVault';
7
6
  export type Market = {
8
7
  vault: MarketVault;
9
8
  fee: MarketFee;
10
- priceTable: MarketPriceTable;
11
9
  };
@@ -0,0 +1,4 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ export type MarketOperation = "buy" | "sell";
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 { Capital } from './Capital';
4
5
  import { Gold } from './Gold';
5
6
  import { Influence } from './Influence';
6
7
  import { PlayerId } from './PlayerId';
@@ -9,6 +10,7 @@ import { Resources } from './Resources';
9
10
  export type Player = {
10
11
  id: PlayerId;
11
12
  status: PlayerStatus;
13
+ capital: Capital;
12
14
  resources: Resources;
13
15
  gold: Gold;
14
16
  influence: Influence;
@@ -2,6 +2,8 @@
2
2
  //! SPDX-License-Identifier: AGPL-3.0-only
3
3
 
4
4
  import { BotId } from './BotId';
5
+ import { PublicCapital } from './PublicCapital';
5
6
  export type PublicBot = {
6
7
  id: BotId;
8
+ capital: PublicCapital;
7
9
  };
@@ -0,0 +1,7 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ import { Coord } from './Coord';
5
+ export type PublicCapital = {
6
+ coord: Coord | null;
7
+ };
@@ -3,7 +3,9 @@
3
3
 
4
4
  import { PlayerId } from './PlayerId';
5
5
  import { PlayerStatus } from './PlayerStatus';
6
+ import { PublicCapital } from './PublicCapital';
6
7
  export type PublicPlayer = {
7
8
  id: PlayerId;
8
9
  status: PlayerStatus;
10
+ capital: PublicCapital;
9
11
  };
@@ -3,7 +3,9 @@
3
3
 
4
4
  import { Coord } from './Coord';
5
5
  import { PrecursorId } from './PrecursorId';
6
+ import { PublicCapital } from './PublicCapital';
6
7
  export type PublicPrecursor = {
7
8
  id: PrecursorId;
8
9
  origin: Coord;
10
+ capital: PublicCapital;
9
11
  };
@@ -6,7 +6,9 @@ import { Iron } from './Iron';
6
6
  import { Stone } from './Stone';
7
7
  import { Wood } from './Wood';
8
8
  /**
9
- * Basic resources, such as food.
9
+ * Basic resources, such as [food].
10
+ *
11
+ * [food]: crate::resources::Food
10
12
  */
11
13
  export type Resources = {
12
14
  food: Food;
@@ -1,7 +1,11 @@
1
1
  //! Copyright (C) Call of Nil contributors
2
2
  //! SPDX-License-Identifier: AGPL-3.0-only
3
3
 
4
+ import { InfluenceResourceCost } from './InfluenceResourceCost';
4
5
  import { InfrastructureStats } from './InfrastructureStats';
6
+ import { MarketPriceTable } from './MarketPriceTable';
5
7
  export type WorldStats = {
6
8
  infrastructure: InfrastructureStats;
9
+ marketPriceTable: MarketPriceTable;
10
+ influenceResourceCost: InfluenceResourceCost;
7
11
  };
package/dist/index.d.ts CHANGED
@@ -49,6 +49,7 @@ export type { CancelManeuverRequest } from './CancelManeuverRequest';
49
49
  export type { CancelPrefectureBuildOrderRequest } from './CancelPrefectureBuildOrderRequest';
50
50
  export type { CancelStableRecruitOrderRequest } from './CancelStableRecruitOrderRequest';
51
51
  export type { CancelWorkshopRecruitOrderRequest } from './CancelWorkshopRecruitOrderRequest';
52
+ export type { Capital } from './Capital';
52
53
  export type { ChatHistory } from './ChatHistory';
53
54
  export type { ChatMessage } from './ChatMessage';
54
55
  export type { ChatMessageAuthor } from './ChatMessageAuthor';
@@ -82,6 +83,8 @@ export type { CheatGetIdleArmiesAtRequest } from './CheatGetIdleArmiesAtRequest'
82
83
  export type { CheatGetIdleArmiesAtResponse } from './CheatGetIdleArmiesAtResponse';
83
84
  export type { CheatGetIdlePersonnelAtRequest } from './CheatGetIdlePersonnelAtRequest';
84
85
  export type { CheatGetIdlePersonnelAtResponse } from './CheatGetIdlePersonnelAtResponse';
86
+ export type { CheatGetInfluenceRequest } from './CheatGetInfluenceRequest';
87
+ export type { CheatGetInfluenceResponse } from './CheatGetInfluenceResponse';
85
88
  export type { CheatGetInfrastructureRequest } from './CheatGetInfrastructureRequest';
86
89
  export type { CheatGetInfrastructureResponse } from './CheatGetInfrastructureResponse';
87
90
  export type { CheatGetManeuversOfRequest } from './CheatGetManeuversOfRequest';
@@ -109,6 +112,7 @@ export type { CheatGetStorageCapacityResponse } from './CheatGetStorageCapacityR
109
112
  export type { CheatSetBotEthicsRequest } from './CheatSetBotEthicsRequest';
110
113
  export type { CheatSetBuildingLevelRequest } from './CheatSetBuildingLevelRequest';
111
114
  export type { CheatSetFoodRequest } from './CheatSetFoodRequest';
115
+ export type { CheatSetInfluenceRequest } from './CheatSetInfluenceRequest';
112
116
  export type { CheatSetIronRequest } from './CheatSetIronRequest';
113
117
  export type { CheatSetMarketFeeRequest } from './CheatSetMarketFeeRequest';
114
118
  export type { CheatSetMarketVaultResourcesRequest } from './CheatSetMarketVaultResourcesRequest';
@@ -171,6 +175,8 @@ export type { GetChatHistoryRequest } from './GetChatHistoryRequest';
171
175
  export type { GetChatHistoryResponse } from './GetChatHistoryResponse';
172
176
  export type { GetCitiesRequest } from './GetCitiesRequest';
173
177
  export type { GetCitiesResponse } from './GetCitiesResponse';
178
+ export type { GetCityLimitRequest } from './GetCityLimitRequest';
179
+ export type { GetCityLimitResponse } from './GetCityLimitResponse';
174
180
  export type { GetCityRequest } from './GetCityRequest';
175
181
  export type { GetCityResponse } from './GetCityResponse';
176
182
  export type { GetCityScoreRequest } from './GetCityScoreRequest';
@@ -260,6 +266,7 @@ export type { GetWorldStatsRequest } from './GetWorldStatsRequest';
260
266
  export type { GetWorldStatsResponse } from './GetWorldStatsResponse';
261
267
  export type { Gold } from './Gold';
262
268
  export type { Influence } from './Influence';
269
+ export type { InfluenceResourceCost } from './InfluenceResourceCost';
263
270
  export type { Infrastructure } from './Infrastructure';
264
271
  export type { InfrastructureRequirements } from './InfrastructureRequirements';
265
272
  export type { InfrastructureStats } from './InfrastructureStats';
@@ -280,6 +287,7 @@ export type { ManeuverRequest } from './ManeuverRequest';
280
287
  export type { ManeuverState } from './ManeuverState';
281
288
  export type { Market } from './Market';
282
289
  export type { MarketFee } from './MarketFee';
290
+ export type { MarketOperation } from './MarketOperation';
283
291
  export type { MarketPriceTable } from './MarketPriceTable';
284
292
  export type { MarketVault } from './MarketVault';
285
293
  export type { Military } from './Military';
@@ -307,6 +315,7 @@ export type { PrefectureBuildOrderRequest } from './PrefectureBuildOrderRequest'
307
315
  export type { PrefectureBuildOrderState } from './PrefectureBuildOrderState';
308
316
  export type { PrefectureBuildQueue } from './PrefectureBuildQueue';
309
317
  export type { PublicBot } from './PublicBot';
318
+ export type { PublicCapital } from './PublicCapital';
310
319
  export type { PublicCity } from './PublicCity';
311
320
  export type { PublicField } from './PublicField';
312
321
  export type { PublicPlayer } from './PublicPlayer';
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "0.7.20";
2
+ var version = "0.7.22";
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.20",
3
+ "version": "0.7.22",
4
4
  "description": "TypeScript bindings for Call of Nil",
5
5
  "type": "module",
6
- "packageManager": "pnpm@11.20.0",
6
+ "packageManager": "pnpm@11.22.0",
7
7
  "license": "AGPL-3.0-only",
8
8
  "private": false,
9
9
  "homepage": "https://nil.dev.br",