@chronodivide/game-api 0.61.0 → 0.62.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,9 @@
1
1
  # Changelog
2
2
 
3
+ # 0.62.0
4
+
5
+ - Update game engine version to 0.67
6
+
3
7
  # 0.61.0
4
8
 
5
9
  - Update game engine version to 0.66
package/dist/index.d.ts CHANGED
@@ -231,6 +231,9 @@ export declare interface CreateBaseOpts {
231
231
  credits: number;
232
232
  unitCount: number;
233
233
  buildOffAlly: boolean;
234
+ destroyableBridges?: boolean;
235
+ multiEngineer?: boolean;
236
+ noDogEngiKills?: boolean;
234
237
  }
235
238
 
236
239
  export declare interface CreateOfflineOpts extends CreateBaseOpts {
@@ -438,6 +441,9 @@ export declare class GeneralRules {
438
441
  dMisl: DMislRules;
439
442
  dropPodWeapon: string;
440
443
  engineer: string;
444
+ engineerAlwaysCaptureTech: boolean;
445
+ engineerCaptureLevel: number;
446
+ engineerDamage: number;
441
447
  flightLevel: number;
442
448
  guardAreaTargetingDelay: number;
443
449
  harvesterTooFarDistance: number;
@@ -657,6 +663,8 @@ export declare class MapApi {
657
663
  getObjectsOnTile(tile: Tile): number[];
658
664
  hasBridgeOnTile(tile: Tile): boolean;
659
665
  hasHighBridgeOnTile(tile: Tile): boolean;
666
+ isPassableTile(tile: Tile, speedType: SpeedType, onBridge: boolean, subCell: boolean): boolean;
667
+ /** @deprecated Use overload with explicit subCell instead */
660
668
  isPassableTile(tile: Tile, speedType: SpeedType, onBridge: boolean): boolean;
661
669
  /**
662
670
  * Returns the path between two points on the map for the given SpeedType.
@@ -664,6 +672,8 @@ export declare class MapApi {
664
672
  * Should only be used with ground, non-teleporting units.
665
673
  * This method has a big performance penalty and should be used with care.
666
674
  */
675
+ findPath(speedType: SpeedType, subCell: boolean, from: PathNode, to: PathNode, options?: PathFinderOptions): PathNode[];
676
+ /** @deprecated Use overload with explicit subCell instead */
667
677
  findPath(speedType: SpeedType, from: PathNode, to: PathNode, options?: PathFinderOptions): PathNode[];
668
678
  /** If the tile is not covered by shroud for the specified player */
669
679
  isVisibleTile(tile: Tile, playerName: string, tileElevation?: number): boolean;
@@ -1314,7 +1324,7 @@ export declare class TechnoRules extends ObjectRules {
1314
1324
  *
1315
1325
  * Omit = no limit;
1316
1326
  * 0 = only AI allowed to build, don't show in sidebar;
1317
- * <0 (UNSUPPORTED) = the absolute value limits the number of units that can be trained for the entire match
1327
+ * <0 = the absolute value limits the number of units that can be trained for the entire match
1318
1328
  */
1319
1329
  buildLimit: number;
1320
1330
  airRangeBonus: number;
@@ -1567,6 +1577,11 @@ export declare class TechnoRules extends ObjectRules {
1567
1577
  invisibleInGame: boolean;
1568
1578
  moveToShroud: boolean;
1569
1579
  leadershipRating: number;
1580
+ /** Setting this tag makes the object impossible to be attacked by infantry with Natural set to 'yes'. */
1581
+ unnatural: boolean;
1582
+ /** Setting this tag forbids this infantry from attacking any unit with Unnatural set. */
1583
+ natural: boolean;
1584
+ buildTimeMultiplier: number;
1570
1585
  allowedToStartInMultiplayer: boolean;
1571
1586
  /** Rate of turn for unit body/turret in degrees/tick. Also see ROT */
1572
1587
  rot: number;