@tsukilabs/nil-bindings 0.7.25 → 0.8.0
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/BotAdvancedStartRatio.d.ts +1 -1
- package/dist/BuildingStats.d.ts +1 -1
- package/dist/Cost.d.ts +1 -1
- package/dist/Gold.d.ts +1 -1
- package/dist/Influence.d.ts +4 -4
- package/dist/InfluenceResourceCost.d.ts +1 -1
- package/dist/Maintenance.d.ts +3 -3
- package/dist/MineProduction.d.ts +1 -1
- package/dist/PublicCity.d.ts +1 -1
- package/dist/PublicField.d.ts +1 -1
- package/dist/Resources.d.ts +2 -2
- package/dist/RoundDuration.d.ts +1 -1
- package/dist/Speed.d.ts +1 -1
- package/dist/Squad.d.ts +1 -1
- package/dist/Stability.d.ts +1 -1
- package/dist/StorageCapacity.d.ts +1 -1
- package/dist/Workforce.d.ts +5 -5
- package/dist/index.js +1 -1
- package/package.json +27 -27
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
//! SPDX-License-Identifier: AGPL-3.0-only
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Proporção de bots que terão um início avançado com infraestrutura de nível mais alto.
|
|
6
6
|
*/
|
|
7
7
|
export type BotAdvancedStartRatio = number;
|
package/dist/BuildingStats.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { Resources } from './Resources';
|
|
|
8
8
|
import { Score } from './Score';
|
|
9
9
|
import { Workforce } from './Workforce';
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Informações sobre um edifício no nível informado.
|
|
12
12
|
*/
|
|
13
13
|
export type BuildingStats = {
|
|
14
14
|
level: BuildingLevel;
|
package/dist/Cost.d.ts
CHANGED
package/dist/Gold.d.ts
CHANGED
package/dist/Influence.d.ts
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
//! SPDX-License-Identifier: AGPL-3.0-only
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* Influência é um recurso especial que representa o poder político de um soberano
|
|
6
|
+
* e é usado para determinar quantas cidades ele pode controlar simultaneamente.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
8
|
+
* A quantidade de influência necessária para controlar um número `n` de cidades é dada pela
|
|
9
|
+
* fórmula `n * (n + 1) / 2`, ou seja, cresce como um número triangular.
|
|
10
10
|
*/
|
|
11
11
|
export type Influence = number;
|
package/dist/Maintenance.d.ts
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
import { Food } from './Food';
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Taxa de manutenção de uma entidade.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
8
|
+
* Seu valor equivale a uma porcentagem do [custo base].
|
|
9
9
|
*
|
|
10
|
-
* [base
|
|
10
|
+
* [custo base]: crate::resources::cost::Cost
|
|
11
11
|
*/
|
|
12
12
|
export type Maintenance = Food;
|
package/dist/MineProduction.d.ts
CHANGED
package/dist/PublicCity.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { Coord } from './Coord';
|
|
5
5
|
import { Ruler } from './Ruler';
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Dados públicos de uma cidade, aos quais qualquer jogador pode ter acesso.
|
|
8
8
|
*/
|
|
9
9
|
export type PublicCity = {
|
|
10
10
|
coord: Coord;
|
package/dist/PublicField.d.ts
CHANGED
package/dist/Resources.d.ts
CHANGED
|
@@ -6,9 +6,9 @@ import { Iron } from './Iron';
|
|
|
6
6
|
import { Stone } from './Stone';
|
|
7
7
|
import { Wood } from './Wood';
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Recursos básicos, como [alimentos].
|
|
10
10
|
*
|
|
11
|
-
* [
|
|
11
|
+
* [alimentos]: crate::resources::Food
|
|
12
12
|
*/
|
|
13
13
|
export type Resources = {
|
|
14
14
|
food: Food;
|
package/dist/RoundDuration.d.ts
CHANGED
package/dist/Speed.d.ts
CHANGED
package/dist/Squad.d.ts
CHANGED
package/dist/Stability.d.ts
CHANGED
package/dist/Workforce.d.ts
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
//! SPDX-License-Identifier: AGPL-3.0-only
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* Mão de obra é um recurso especial usado para construir edifícios e recrutar tropas.
|
|
6
|
+
* A quantidade gerada por rodada será sempre igual ao nível do edifício correspondente
|
|
7
|
+
* multiplicado pela velocidade do mundo.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* Diferentemente dos outros recursos, a mão de obra nunca deve se acumular para a próxima rodada.
|
|
10
|
+
* Tudo que não for usado deve ser descartado.
|
|
11
11
|
*/
|
|
12
12
|
export type Workforce = number;
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsukilabs/nil-bindings",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "TypeScript bindings for Call of Nil",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"packageManager": "pnpm@12.3.4",
|
|
7
|
-
"license": "AGPL-3.0-only",
|
|
3
|
+
"version": "0.8.0",
|
|
8
4
|
"private": false,
|
|
5
|
+
"description": "TypeScript bindings for Call of Nil",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"call-of-nil",
|
|
8
|
+
"tsukilabs"
|
|
9
|
+
],
|
|
9
10
|
"homepage": "https://nil.dev.br",
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
11
|
+
"license": "AGPL-3.0-only",
|
|
12
|
+
"contributors": [
|
|
13
|
+
{
|
|
14
|
+
"name": "Andrew Ferreira",
|
|
15
|
+
"email": "andrew.shien2@gmail.com",
|
|
16
|
+
"url": "https://tb.dev.br"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "Danilo Soares",
|
|
20
|
+
"email": "danilofs18@gmail.com",
|
|
21
|
+
"url": "https://github.com/danilofs18"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"type": "module",
|
|
25
|
+
"main": "./dist/index.js",
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
27
|
+
"files": [
|
|
28
|
+
"dist"
|
|
29
|
+
],
|
|
27
30
|
"scripts": {
|
|
28
31
|
"build": "vite build",
|
|
29
32
|
"type-check": "tsc --noEmit",
|
|
30
33
|
"typedoc": "typedoc --plugin typedoc-plugin-mdn-links"
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
"main": "./dist/index.js",
|
|
34
|
-
"types": "./dist/index.d.ts"
|
|
35
|
-
}
|
|
34
|
+
}
|
|
35
|
+
}
|