@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.
@@ -2,6 +2,6 @@
2
2
  //! SPDX-License-Identifier: AGPL-3.0-only
3
3
 
4
4
  /**
5
- * Proportion of bots that will have an advanced start with higher level infrastructure.
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;
@@ -8,7 +8,7 @@ import { Resources } from './Resources';
8
8
  import { Score } from './Score';
9
9
  import { Workforce } from './Workforce';
10
10
  /**
11
- * Information about a building at a given level.
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
@@ -2,6 +2,6 @@
2
2
  //! SPDX-License-Identifier: AGPL-3.0-only
3
3
 
4
4
  /**
5
- * Base cost of an entity, such as buildings or units.
5
+ * Custo base de uma entidade, como edifícios ou unidades.
6
6
  */
7
7
  export type Cost = number;
package/dist/Gold.d.ts CHANGED
@@ -2,6 +2,6 @@
2
2
  //! SPDX-License-Identifier: AGPL-3.0-only
3
3
 
4
4
  /**
5
- * Gold is a special resource used to trade in the market.
5
+ * Ouro é um recurso especial usado para negociar no mercado.
6
6
  */
7
7
  export type Gold = number;
@@ -2,10 +2,10 @@
2
2
  //! SPDX-License-Identifier: AGPL-3.0-only
3
3
 
4
4
  /**
5
- * Influence is a special resource which represents the political power of a ruler
6
- * and is used to determine how many cities they can simultaneously control.
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
- * The amount of influence needed to control a number `n` of cities is given by
9
- * the formula `n * (n + 1) / 2`, meaning it increases as a triangular number.
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;
@@ -3,6 +3,6 @@
3
3
 
4
4
  import { Resources } from './Resources';
5
5
  /**
6
- * Resources required to acquire one unit of influence.
6
+ * Recursos necessários para adquirir uma unidade de influência.
7
7
  */
8
8
  export type InfluenceResourceCost = Resources;
@@ -3,10 +3,10 @@
3
3
 
4
4
  import { Food } from './Food';
5
5
  /**
6
- * Maintenance tax of an entity.
6
+ * Taxa de manutenção de uma entidade.
7
7
  *
8
- * Its value is equivalent to a percentage of the [base cost].
8
+ * Seu valor equivale a uma porcentagem do [custo base].
9
9
  *
10
- * [base cost]: crate::resources::cost::Cost
10
+ * [custo base]: crate::resources::cost::Cost
11
11
  */
12
12
  export type Maintenance = Food;
@@ -2,6 +2,6 @@
2
2
  //! SPDX-License-Identifier: AGPL-3.0-only
3
3
 
4
4
  /**
5
- * Amount of resources generated by a mine in a single round.
5
+ * Quantidade de recursos gerada por uma mina em uma rodada.
6
6
  */
7
7
  export type MineProduction = number;
@@ -4,7 +4,7 @@
4
4
  import { Coord } from './Coord';
5
5
  import { Ruler } from './Ruler';
6
6
  /**
7
- * Public data about a city, to which any player can have access.
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;
@@ -3,7 +3,7 @@
3
3
 
4
4
  import { PublicCity } from './PublicCity';
5
5
  /**
6
- * Public data about a field, to which any player can have access.
6
+ * Dados públicos de um campo, aos quais qualquer jogador pode ter acesso.
7
7
  */
8
8
  export type PublicField = {
9
9
  "kind": "empty";
@@ -6,9 +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
+ * Recursos básicos, como [alimentos].
10
10
  *
11
- * [food]: crate::resources::Food
11
+ * [alimentos]: crate::resources::Food
12
12
  */
13
13
  export type Resources = {
14
14
  food: Food;
@@ -2,6 +2,6 @@
2
2
  //! SPDX-License-Identifier: AGPL-3.0-only
3
3
 
4
4
  /**
5
- * Round duration, in minutes.
5
+ * Duração da rodada, em minutos.
6
6
  */
7
7
  export type RoundDuration = number;
package/dist/Speed.d.ts CHANGED
@@ -2,6 +2,6 @@
2
2
  //! SPDX-License-Identifier: AGPL-3.0-only
3
3
 
4
4
  /**
5
- * Represents how many fields a unit can travel in one round.
5
+ * Representa quantos campos uma unidade pode percorrer em uma rodada.
6
6
  */
7
7
  export type Speed = number;
package/dist/Squad.d.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  import { SquadSize } from './SquadSize';
5
5
  import { UnitBox } from './UnitBox';
6
6
  /**
7
- * A group of units of the same type.
7
+ * Um grupo de unidades do mesmo tipo.
8
8
  */
9
9
  export type Squad = {
10
10
  unit: UnitBox;
@@ -2,6 +2,6 @@
2
2
  //! SPDX-License-Identifier: AGPL-3.0-only
3
3
 
4
4
  /**
5
- * Political stability of the city.
5
+ * Estabilidade política da cidade.
6
6
  */
7
7
  export type Stability = number;
@@ -2,6 +2,6 @@
2
2
  //! SPDX-License-Identifier: AGPL-3.0-only
3
3
 
4
4
  /**
5
- * Storage capacity of a building.
5
+ * Capacidade de armazenamento de um edifício.
6
6
  */
7
7
  export type StorageCapacity = number;
@@ -2,11 +2,11 @@
2
2
  //! SPDX-License-Identifier: AGPL-3.0-only
3
3
 
4
4
  /**
5
- * Workforce is a special resource used to construct buildings and recruit troops.
6
- * The amount generated per round will always be equal to the level of the relevant
7
- * building multiplied by the world speed.
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
- * Unlike other resources, workforce should never accumulate for the next round.
10
- * Anything that is not used should be discarded.
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
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "0.7.25";
2
+ var version = "0.8.0";
3
3
  //#endregion
4
4
  //#region src/env_Var.ts
5
5
  var env_Var = /* @__PURE__ */ function(env_Var) {
package/package.json CHANGED
@@ -1,35 +1,35 @@
1
1
  {
2
2
  "name": "@tsukilabs/nil-bindings",
3
- "version": "0.7.25",
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
- "contributors": [{
11
- "name": "Andrew Ferreira",
12
- "email": "andrew.shien2@gmail.com",
13
- "url": "https://tb.dev.br"
14
- }, {
15
- "name": "Danilo Soares",
16
- "email": "danilofs18@gmail.com",
17
- "url": "https://github.com/danilofs18"
18
- }],
19
- "repository": {
20
- "type": "git",
21
- "url": "https://github.com/tsukilabs/nil"
22
- },
23
- "bugs": {
24
- "url": "https://github.com/tsukilabs/nil/issues"
25
- },
26
- "keywords": ["call-of-nil", "tsukilabs"],
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
- "files": ["dist"],
33
- "main": "./dist/index.js",
34
- "types": "./dist/index.d.ts"
35
- }
34
+ }
35
+ }