@chronodivide/game-api 0.51.2 → 0.52.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 +9 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
# 0.52.0
|
|
4
|
+
|
|
5
|
+
- Update game engine version to 0.58
|
|
6
|
+
|
|
7
|
+
# 0.51.3
|
|
8
|
+
|
|
9
|
+
- Add `owner` property on base `GameObjectData`
|
|
10
|
+
- Add `passengerSlotCount` and `passengerSlotMax` properties on `UnitData`
|
|
11
|
+
|
|
3
12
|
# 0.51.2
|
|
4
13
|
|
|
5
14
|
- 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 */
|