api: add roof removal api

This commit is contained in:
Hydrox6
2021-07-05 22:41:30 +01:00
committed by Adam
parent afde6c899e
commit 95545c1540
2 changed files with 25 additions and 0 deletions

View File

@@ -81,6 +81,27 @@ public class Constants
public static final int MAX_Z = 4;
public static final int TILE_FLAG_BRIDGE = 2;
public static final int TILE_FLAG_UNDER_ROOF = 4;
/**
* Flag for roof removal to remove the roofs above the player's current position.
*/
public static final int ROOF_FLAG_POSITION = 1;
/**
* Flag for roof removal to remove the roofs above the currently hovered tile.
*/
public static final int ROOF_FLAG_HOVERED = 2;
/**
* Flag for roof removal to remove the roofs above the player's destination tile.
*/
public static final int ROOF_FLAG_DESTINATION = 4;
/**
* Flag for roof removal to remove the roofs that are above any tile between the camera and the player.
*/
public static final int ROOF_FLAG_BETWEEN = 8;
/**
* The height of the overworld, in tiles. Coordinates above this are in caves and other such zones.

View File

@@ -58,4 +58,8 @@ public interface Scene
* @param gameObject
*/
void removeGameObject(GameObject gameObject);
void generateHouses();
void setRoofRemovalMode(int flags);
}