@chronodivide/game-api 0.51.2 → 0.51.3

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,10 @@
1
1
  # Changelog
2
2
 
3
+ # 0.51.3
4
+
5
+ - Add `owner` property on base `GameObjectData`
6
+ - Add `passengerSlotCount` and `passengerSlotMax` properties on `UnitData`
7
+
3
8
  # 0.51.2
4
9
 
5
10
  - Added function overload to `mapApi.getTilesInRect` that accepts a single argument of type `Rectangle`
package/dist/index.d.ts CHANGED
@@ -411,6 +411,8 @@ export declare interface GameObjectData {
411
411
  hitPoints?: number;
412
412
  /** The maximum HP */
413
413
  maxHitPoints?: number;
414
+ /** The name of the player that owns this object (only for techno types) */
415
+ owner?: string;
414
416
  }
415
417
 
416
418
  export declare class GeneralRules {
@@ -1767,6 +1769,10 @@ export declare interface UnitData extends GameObjectData {
1767
1769
  harvestedOre?: number;
1768
1770
  /** Only applicable to harvesters */
1769
1771
  harvestedGems?: number;
1772
+ /** Only applicable to transport vehicles */
1773
+ passengerSlotCount?: number;
1774
+ /** Only applicable to transport vehicles */
1775
+ passengerSlotMax?: number;
1770
1776
  /** Only applicable to aircraft */
1771
1777
  ammo?: number;
1772
1778
  /** If the unit is under the effect of a chrono/temporal weapon */