@tsukilabs/nil-bindings 0.7.2 → 0.7.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.
@@ -0,0 +1,16 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ import { Password } from './Password';
5
+ import { PlayerId } from './PlayerId';
6
+ import { ServerAddr } from './ServerAddr';
7
+ import { Token } from './Token';
8
+ import { WorldId } from './WorldId';
9
+ export type ClientOptions = {
10
+ server: ServerAddr;
11
+ worldId?: WorldId | null;
12
+ worldPassword?: Password | null;
13
+ playerId?: PlayerId | null;
14
+ playerPassword?: Password | null;
15
+ authorizationToken?: Token | null;
16
+ };
@@ -0,0 +1,8 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ import { WorldId } from './WorldId';
5
+ export type LocalServer = {
6
+ world: WorldId;
7
+ addr: string;
8
+ };
@@ -0,0 +1,9 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ export type ServerAddr = {
5
+ "kind": "remote";
6
+ } | {
7
+ "kind": "local";
8
+ addr: string;
9
+ };
package/dist/index.d.ts CHANGED
@@ -122,6 +122,7 @@ export type { CheatSpawnPersonnelRequest } from './CheatSpawnPersonnelRequest';
122
122
  export type { City } from './City';
123
123
  export type { CityName } from './CityName';
124
124
  export type { CitySearch } from './CitySearch';
125
+ export type { ClientOptions } from './ClientOptions';
125
126
  export type { ContinentIndex } from './ContinentIndex';
126
127
  export type { ContinentSize } from './ContinentSize';
127
128
  export type { Coord } from './Coord';
@@ -246,6 +247,7 @@ export type { Iron } from './Iron';
246
247
  export type { IronMine } from './IronMine';
247
248
  export type { LeaveRequest } from './LeaveRequest';
248
249
  export type { Locale } from './Locale';
250
+ export type { LocalServer } from './LocalServer';
249
251
  export type { Luck } from './Luck';
250
252
  export type { Maintenance } from './Maintenance';
251
253
  export type { Maneuver } from './Maneuver';
@@ -310,6 +312,7 @@ export type { SearchCityRequest } from './SearchCityRequest';
310
312
  export type { SearchCityResponse } from './SearchCityResponse';
311
313
  export type { SearchPublicCityRequest } from './SearchPublicCityRequest';
312
314
  export type { SearchPublicCityResponse } from './SearchPublicCityResponse';
315
+ export type { ServerAddr } from './ServerAddr';
313
316
  export type { ServerKind } from './ServerKind';
314
317
  export type { SetPlayerReadyRequest } from './SetPlayerReadyRequest';
315
318
  export type { SetPlayerReadyResponse } from './SetPlayerReadyResponse';
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "0.7.2";
2
+ var version = "0.7.4";
3
3
  //#endregion
4
4
  //#region src/env_Var.ts
5
5
  var env_Var = /* @__PURE__ */ function(env_Var) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsukilabs/nil-bindings",
3
- "version": "0.7.2",
3
+ "version": "0.7.4",
4
4
  "type": "module",
5
5
  "packageManager": "pnpm@11.17.0",
6
6
  "license": "AGPL-3.0-only",