@chronodivide/game-api 0.51.0 → 0.51.2
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 +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +1 -1
- package/dist/res/ra2cd.mix +0 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
# 0.51.2
|
|
4
|
+
|
|
5
|
+
- Added function overload to `mapApi.getTilesInRect` that accepts a single argument of type `Rectangle`
|
|
6
|
+
|
|
7
|
+
# 0.51.1
|
|
8
|
+
|
|
9
|
+
- Fix loading standalone map files from the file system
|
|
10
|
+
|
|
3
11
|
# 0.51.0
|
|
4
12
|
|
|
5
13
|
- Update game engine version to 0.57
|
package/dist/index.d.ts
CHANGED
|
@@ -650,6 +650,7 @@ export declare class MapApi {
|
|
|
650
650
|
getStartingLocations(): Vector2[];
|
|
651
651
|
getTheaterType(): TheaterType;
|
|
652
652
|
getTile(rx: number, ry: number): Tile | undefined;
|
|
653
|
+
getTilesInRect(rectangle: Rectangle): Tile[];
|
|
653
654
|
getTilesInRect(baseTile: Tile, size: Size): Tile[];
|
|
654
655
|
getObjectsOnTile(tile: Tile): number[];
|
|
655
656
|
hasBridgeOnTile(tile: Tile): boolean;
|
|
@@ -1144,6 +1145,13 @@ export declare class RadiationRules {
|
|
|
1144
1145
|
readIni(ini: IniSection): void;
|
|
1145
1146
|
}
|
|
1146
1147
|
|
|
1148
|
+
export declare interface Rectangle {
|
|
1149
|
+
x: number;
|
|
1150
|
+
y: number;
|
|
1151
|
+
width: number;
|
|
1152
|
+
height: number;
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1147
1155
|
export declare class RepairRules {
|
|
1148
1156
|
/** minutes to reload each ammo point for aircraft or helicopters (also affects repair rate) */
|
|
1149
1157
|
reloadRate: number;
|