-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathInputActionManager.h
More file actions
40 lines (35 loc) · 1.05 KB
/
Copy pathInputActionManager.h
File metadata and controls
40 lines (35 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#pragma once
#include "Core.Minimal.h"
#include "ActionMap.h"
#include "PlayerInput.h"
#include <nlohmann/json.hpp>
class InputActionManager //: public Singleton<InputActionManager>
{
//friend class Singleton;
public:
InputActionManager() {};
~InputActionManager() = default;
void Update(float tick);
void AddActionMap();
ActionMap* AddActionMap(std::string name);
void DeleteActionMap(std::string name);
ActionMap* FindActionMap(std::string name);
// 저작 게시는 Editor Host가 소유한다. 맵마다 payload만 만들고 Player에는
// handler가 없어 정상적으로 실패한다. 한 맵이 실패해도 나머지는 계속 쓴다.
bool SaveManager();
void LoadManager();
//�� �ϳ��� json �Ѱ�������
bool SerializeMap(ActionMap* _actionMap);
ActionMap* DeSerializeMap(std::string _filepath);
void ClearActionMaps()
{
for (auto& actionMap : m_actionMaps)
{
delete actionMap;
}
m_actionMaps.clear();
}
std::vector<ActionMap*> m_actionMaps;
private:
};
extern InputActionManager* InputActionManagers;