@tsukilabs/nil-bindings 0.6.2 → 0.6.4

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.js CHANGED
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "0.6.2";
2
+ var version = "0.6.4";
3
3
  //#endregion
4
4
  //#region src/env_Var.ts
5
5
  var env_Var = /* @__PURE__ */ function(env_Var) {
@@ -0,0 +1,9 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ import { ManeuverId } from './ManeuverId';
5
+ import { WorldId } from './WorldId';
6
+ export type CancelManeuverRequest = {
7
+ world: WorldId;
8
+ id: ManeuverId;
9
+ };
@@ -8,26 +8,26 @@ import { ReportKind } from './ReportKind';
8
8
  import { Round } from './Round';
9
9
  import { WorldId } from './WorldId';
10
10
  export type Event = {
11
- "kind": "chat-updated";
11
+ "kind": "chat-message";
12
12
  world: WorldId;
13
13
  message: ChatMessage;
14
14
  } | {
15
- "kind": "city-updated";
15
+ "kind": "city";
16
16
  world: WorldId;
17
17
  coord: Coord;
18
18
  } | {
19
19
  "kind": "drop";
20
20
  world: WorldId;
21
21
  } | {
22
- "kind": "military-updated";
22
+ "kind": "military";
23
23
  world: WorldId;
24
24
  player: PlayerId;
25
25
  } | {
26
- "kind": "player-updated";
26
+ "kind": "player";
27
27
  world: WorldId;
28
28
  player: PlayerId;
29
29
  } | {
30
- "kind": "public-city-updated";
30
+ "kind": "public-city";
31
31
  world: WorldId;
32
32
  coord: Coord;
33
33
  } | {
@@ -35,7 +35,7 @@ export type Event = {
35
35
  world: WorldId;
36
36
  report: ReportKind;
37
37
  } | {
38
- "kind": "round-updated";
38
+ "kind": "round";
39
39
  world: WorldId;
40
40
  round: Round;
41
41
  };
@@ -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 GetArmiesRequest = {
6
+ world: WorldId;
7
+ };
@@ -0,0 +1,6 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ import { Army } from './Army';
5
+ import { Coord } from './Coord';
6
+ export type GetArmiesResponse = Array<[Coord, Army]>;
@@ -0,0 +1,9 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ import { Coord } from './Coord';
5
+ import { WorldId } from './WorldId';
6
+ export type GetIdleArmiesAtRequest = {
7
+ world: WorldId;
8
+ coord: Coord;
9
+ };
@@ -0,0 +1,5 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ import { Army } from './Army';
5
+ export type GetIdleArmiesAtResponse = Array<Army>;
@@ -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 GetIdleArmiesCoordsRequest = {
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 { Coord } from './Coord';
5
+ export type GetIdleArmiesCoordsResponse = Array<Coord>;
@@ -4,8 +4,10 @@
4
4
  import { ArmyPersonnel } from './ArmyPersonnel';
5
5
  import { Coord } from './Coord';
6
6
  import { ManeuverKind } from './ManeuverKind';
7
+ import { Ruler } from './Ruler';
7
8
  export type ManeuverRequest = {
8
9
  kind: ManeuverKind;
10
+ ruler: Ruler;
9
11
  origin: Coord;
10
12
  destination: Coord;
11
13
  personnel: ArmyPersonnel;
@@ -43,6 +43,7 @@ export type { BuildingStats } from './BuildingStats';
43
43
  export type { BuildingStatsTable } from './BuildingStatsTable';
44
44
  export type { BuildStep } from './BuildStep';
45
45
  export type { CancelAcademyRecruitOrderRequest } from './CancelAcademyRecruitOrderRequest';
46
+ export type { CancelManeuverRequest } from './CancelManeuverRequest';
46
47
  export type { CancelPrefectureBuildOrderRequest } from './CancelPrefectureBuildOrderRequest';
47
48
  export type { CancelStableRecruitOrderRequest } from './CancelStableRecruitOrderRequest';
48
49
  export type { CancelWorkshopRecruitOrderRequest } from './CancelWorkshopRecruitOrderRequest';
@@ -133,6 +134,8 @@ export type { Food } from './Food';
133
134
  export type { ForwardReportRequest } from './ForwardReportRequest';
134
135
  export type { GetAcademyRecruitCatalogRequest } from './GetAcademyRecruitCatalogRequest';
135
136
  export type { GetAcademyRecruitCatalogResponse } from './GetAcademyRecruitCatalogResponse';
137
+ export type { GetArmiesRequest } from './GetArmiesRequest';
138
+ export type { GetArmiesResponse } from './GetArmiesResponse';
136
139
  export type { GetArmyOwnerRequest } from './GetArmyOwnerRequest';
137
140
  export type { GetArmyOwnerResponse } from './GetArmyOwnerResponse';
138
141
  export type { GetArmyRequest } from './GetArmyRequest';
@@ -147,6 +150,10 @@ export type { GetCityScoreRequest } from './GetCityScoreRequest';
147
150
  export type { GetCityScoreResponse } from './GetCityScoreResponse';
148
151
  export type { GetContinentSizeRequest } from './GetContinentSizeRequest';
149
152
  export type { GetContinentSizeResponse } from './GetContinentSizeResponse';
153
+ export type { GetIdleArmiesAtRequest } from './GetIdleArmiesAtRequest';
154
+ export type { GetIdleArmiesAtResponse } from './GetIdleArmiesAtResponse';
155
+ export type { GetIdleArmiesCoordsRequest } from './GetIdleArmiesCoordsRequest';
156
+ export type { GetIdleArmiesCoordsResponse } from './GetIdleArmiesCoordsResponse';
150
157
  export type { GetManeuverRequest } from './GetManeuverRequest';
151
158
  export type { GetManeuverResponse } from './GetManeuverResponse';
152
159
  export type { GetPlayerCoordsRequest } from './GetPlayerCoordsRequest';
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@tsukilabs/nil-bindings",
3
- "version": "0.6.2",
3
+ "version": "0.6.4",
4
4
  "type": "module",
5
- "packageManager": "pnpm@11.10.0",
5
+ "packageManager": "pnpm@11.11.0",
6
6
  "license": "AGPL-3.0-only",
7
7
  "private": false,
8
8
  "homepage": "https://nil.dev.br",