aboutsummaryrefslogtreecommitdiff
path: root/Core.cpp
diff options
context:
space:
mode:
authorBDKPlayer <fabian.stotz@yahoo.de>2020-08-02 13:34:33 +0200
committerBDKPlayer <fabian.stotz@yahoo.de>2020-08-02 13:34:33 +0200
commit822b531a4f9b8120f1126fbaec085b8b6fab4c57 (patch)
tree270cb36ceca218fcfe1e3cbb9f8b9cf3127602bb /Core.cpp
parenta927cae5522db4eadc250a6cda03494f7a8c2a83 (diff)
Added unit->GetHealth()
Diffstat (limited to 'Core.cpp')
-rw-r--r--Core.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/Core.cpp b/Core.cpp
index 74ad230..0e3163e 100644
--- a/Core.cpp
+++ b/Core.cpp
@@ -27,18 +27,12 @@
#include "Offsets.h"
-MidfunctionHook onGameStartHook = MidfunctionHook();
MidfunctionHook onTurnHook = MidfunctionHook();
MidfunctionHook onCreateUnitHook = MidfunctionHook();
bool openOverlay = true;
-void __fastcall OnGameStartHook(Registers* registers)
-{
- FeatureManager::Get()->OnGameStart();
- printf("OnGameStart()\n");
-}
void __fastcall OnTurnHook(Registers* registers)
@@ -130,7 +124,7 @@ void createPlayerTreeNode(Player* player, int playerIndex)
ImGui::Text("%p", unit);
ImGui::SameLine();
ImGui::Text("%s", unit->GetUnitData()->GetName());
- ImGui::Text("%f %f %f", unit->GetPosition().x, unit->GetPosition().y, unit->GetPosition().z);
+ ImGui::Text("%f %f %f Health: %f", unit->GetPosition().x, unit->GetPosition().y, unit->GetPosition().z, unit->GetHealth());
ImGui::SameLine();
//std::string text = std::string("Copy##") + std::string(unit->GetUnitData()->GetName()) + std::to_string(i);