Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/interfaces
diff options
context:
space:
mode:
authorchililisoup <rebot333gaming@gmail.com>2025-03-20 15:48:46 -0600
committerchililisoup <rebot333gaming@gmail.com>2025-03-20 15:48:46 -0600
commit3130381b1c23e42af6fc14e9de951638f5c275b1 (patch)
tree7a0b7696ad29d594a84d76f3a190a26ffed65ba1 /source/game/interfaces
parent3f761123e939ece5c8805c165dc625756b950f8b (diff)
block swapping
Diffstat (limited to 'source/game/interfaces')
-rw-r--r--source/game/interfaces/StarWorld.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/game/interfaces/StarWorld.hpp b/source/game/interfaces/StarWorld.hpp
index d718786..6b6cae8 100644
--- a/source/game/interfaces/StarWorld.hpp
+++ b/source/game/interfaces/StarWorld.hpp
@@ -46,6 +46,11 @@ public:
// Apply a list of tile modifications in the best order to apply as many
// possible, and returns the modifications that could not be applied.
virtual TileModificationList applyTileModifications(TileModificationList const& modificationList, bool allowEntityOverlap) = 0;
+ // Swap existing tiles for ones defined in the modification list,
+ // and returns the modifications that could not be applied.
+ virtual TileModificationList replaceTiles(TileModificationList const& modificationList) = 0;
+ // If an applied damage would destroy a tile
+ virtual bool damageWouldDestroy(Vec2I const& pos, TileLayer layer, TileDamage const& tileDamage) const = 0;
virtual bool isTileProtected(Vec2I const& pos) const = 0;