input, changes
This commit is contained in:
@@ -8,6 +8,9 @@
|
||||
#include <chrono>
|
||||
#include <functional>
|
||||
#include <object/camera.hpp>
|
||||
#include <game/input.hpp>
|
||||
#include <unordered_map>
|
||||
#include <memory>
|
||||
|
||||
namespace Game {
|
||||
using clock = std::chrono::steady_clock;
|
||||
@@ -22,8 +25,14 @@ namespace Game {
|
||||
void run(std::stop_token stopToken);
|
||||
void setTargetUpdatesPerSecond(int target) { mTargetUpdatesPerSecond = target; }
|
||||
int getTargetUpdatesPerSecond() { return mTargetUpdatesPerSecond; }
|
||||
|
||||
static void setSharedData(const std::string& key, std::string data);
|
||||
static std::string getSharedData(const std::string& key);
|
||||
static void removeSharedData(const std::string& key);
|
||||
|
||||
private:
|
||||
int mTargetUpdatesPerSecond = TARGET_UPDATE_RATE;
|
||||
clock::time_point mLastUpdate;
|
||||
static std::unordered_map<std::string, std::string> mSharedStrings;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user