Skip to content

Commit

Permalink
add SiegeEngine health
Browse files Browse the repository at this point in the history
  • Loading branch information
FynnTW committed Oct 19, 2024
1 parent cb47b93 commit aa2d3da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion M2TWEOP Code/M2TWEOP library/types/unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1915,6 +1915,7 @@ void luaPlugin::initUnits()
@tfield float yCoord
@tfield float mass
@tfield int angle
@tfield int health
@tfield int engineID Unique ID not class!
@tfield unit currentUnit
@tfield unit lastUnit
Expand All @@ -1930,10 +1931,11 @@ void luaPlugin::initUnits()
types.siegeEngineStruct.set("zCoord", &siegeEngine::posZ);
types.siegeEngineStruct.set("yCoord", &siegeEngine::posY);
types.siegeEngineStruct.set("mass", &siegeEngine::mass);
types.siegeEngineStruct.set("health", &siegeEngine::health);
types.siegeEngineStruct.set("angle", sol::property(&unitHelpers::getEngineAngle, &unitHelpers::setEngineAngle));
types.siegeEngineStruct.set("currentUnit", &siegeEngine::currentUnit);
types.siegeEngineStruct.set("lastUnit", &siegeEngine::lastUnit);
types.siegeEngineStruct.set("engineID", &siegeEngine::engineID);
types.siegeEngineStruct.set("engineID", &siegeEngine::ID);
types.siegeEngineStruct.set("fireLevel", &siegeEngine::fireLevel);
types.siegeEngineStruct.set("isBurning", &siegeEngine::isBurning);
types.siegeEngineStruct.set("stats", &siegeEngine::stats);
Expand Down

0 comments on commit aa2d3da

Please sign in to comment.