@chronodivide/game-api 0.67.0 → 0.69.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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ # 0.69.0
4
+
5
+ - Update game engine version to 0.74
6
+
7
+ # 0.68.0
8
+
9
+ - Update game engine version to 0.73
10
+
3
11
  # 0.67.0
4
12
 
5
13
  - Update game engine version to 0.72
package/dist/index.d.ts CHANGED
@@ -485,6 +485,11 @@ export declare class GeneralRules {
485
485
  radar: RadarRules;
486
486
  refundPercent: number;
487
487
  repair: RepairRules;
488
+ /**
489
+ * Whether structures will by default return to the civilian side when a player is defeated or giving up.
490
+ * See https://ares-developers.github.io/Ares-docs/new/buildings/techstructures.html
491
+ */
492
+ returnStructures: boolean;
488
493
  revealTriggerRadius: number;
489
494
  shipSinkingWeight: number;
490
495
  sovietDisguise: string;
@@ -493,6 +498,7 @@ export declare class GeneralRules {
493
498
  technician: string;
494
499
  threat: ThreatRules;
495
500
  treeStrength: number;
501
+ unitsUnsellable: boolean;
496
502
  v3Rocket: V3RocketRules;
497
503
  veteran: VeteranRules;
498
504
  wallBuildSpeedCoefficient: number;
@@ -825,6 +831,7 @@ export declare class ObjectRules {
825
831
  type: ObjectType;
826
832
  protected ini: IniSection;
827
833
  index: number;
834
+ protected generalRules?: GeneralRules | undefined;
828
835
  static readonly IMAGE_NONE = "none";
829
836
  alphaImage: string | undefined;
830
837
  /** Only for SHP-based entities */
@@ -841,7 +848,7 @@ export declare class ObjectRules {
841
848
  uiName: string;
842
849
  static iniSpeedToLeptonsPerTick(iniSpeed: number, iniMax: number): number;
843
850
  static iniRotToDegsPerTick(iniRot: number): number;
844
- constructor(type: ObjectType, ini: IniSection, index?: number);
851
+ constructor(type: ObjectType, ini: IniSection, index?: number, generalRules?: GeneralRules | undefined);
845
852
  protected parse(): void;
846
853
  get name(): string;
847
854
  get imageName(): string;
@@ -1312,6 +1319,7 @@ export declare enum TagRepeatType {
1312
1319
  /** Data structure for rules.ini tehno types sections (buildings, infantry, vehicles, aircrafts) */
1313
1320
  export declare class TechnoRules extends ObjectRules {
1314
1321
  static readonly MAX_SIGHT = 11;
1322
+ protected generalRules: GeneralRules;
1315
1323
  /** Countries that can build this */
1316
1324
  owner: string[];
1317
1325
  /** Side that building belongs to; should match SideType enum values */
@@ -1385,6 +1393,11 @@ export declare class TechnoRules extends ObjectRules {
1385
1393
  clickRepairable: boolean;
1386
1394
  /** Only for buildings */
1387
1395
  unsellable: boolean;
1396
+ /**
1397
+ * Whether this building type will return to the civilian side when the owning player is defeated or giving up.
1398
+ * See https://ares-developers.github.io/Ares-docs/new/buildings/techstructures.html
1399
+ */
1400
+ returnable: boolean;
1388
1401
  gdiBarracks: boolean;
1389
1402
  nodBarracks: boolean;
1390
1403
  numberOfDocks: number;
@@ -1673,6 +1686,7 @@ export declare class TechnoRules extends ObjectRules {
1673
1686
  chronoOutSound: string | undefined;
1674
1687
  enterTransportSound: string | undefined;
1675
1688
  leaveTransportSound: string | undefined;
1689
+ constructor(type: ObjectType, ini: IniSection, index: number, generalRules: GeneralRules);
1676
1690
  protected parse(): void;
1677
1691
  private parseWeaponName;
1678
1692
  private parseTurretIndexes;