This commit is contained in:
2026-05-19 17:19:54 +02:00
parent 8ff3e29374
commit d93e71e716
4 changed files with 25 additions and 0 deletions

View File

@@ -58,6 +58,9 @@ namespace Game {
static void destroyEntity(T* entity);
static void processPendingEntityRemovals();
static void pushPlayerPosition(Object::Transform transform) { mPlayerTransformHistory.push_back(transform); }
static void getPlayerPositionHistory(std::vector<Object::Transform>& outHistory) { outHistory = mPlayerTransformHistory; }
private:
int mTargetUpdatesPerSecond = TARGET_UPDATE_RATE;
clock::time_point mLastUpdate;
@@ -65,6 +68,7 @@ namespace Game {
static std::unordered_map<std::string, int> mSharedInts;
static std::unordered_map<std::string, float> mSharedFloats;
static std::unordered_map<std::string, bool> mSharedBools;
static std::vector<Object::Transform> mPlayerTransformHistory;
static GameStateEnum mCurrentGameState;
float mLastDelta = 0.f;
};