refactor(unit): moved data update code from initialize to update; made initialize and update final

This commit is contained in:
MarcoJayUsai
2024-11-19 13:58:16 +01:00
parent 064c24e023
commit 89051c3e85
2 changed files with 8 additions and 24 deletions

View File

@@ -19,12 +19,12 @@ public:
~Unit();
/********** Methods **********/
void initialize(json::value json);
virtual void initialize(json::value json) final;
virtual void setDefaults(bool force = false);
void runAILoop();
void update(json::value json, double dt);
virtual void update(json::value json, double dt) final;
void refreshLeaderData(unsigned long long time);
unsigned int getID() { return ID; }