diff options
| author | Léo Lam <leo@leolam.fr> | 2021-01-08 19:33:10 +0100 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2021-01-09 13:40:43 +0100 |
| commit | 3ce19016ec6e496dbb005a620d270d7c813764fd (patch) | |
| tree | 895dff441dd1e242183104af430c5a0bddd4cb64 /src/KingSystem | |
| parent | 23b3047f49c9b4248b34e63b4d2cf903db8b5b95 (diff) | |
uking/ui: Add more inventory functions
Diffstat (limited to 'src/KingSystem')
| -rw-r--r-- | src/KingSystem/ActorSystem/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | src/KingSystem/ActorSystem/Profiles/actPlayerBase.cpp | 1 | ||||
| -rw-r--r-- | src/KingSystem/ActorSystem/Profiles/actPlayerBase.h | 15 | ||||
| -rw-r--r-- | src/KingSystem/ActorSystem/actPlayerInfo.cpp | 1 | ||||
| -rw-r--r-- | src/KingSystem/ActorSystem/actPlayerInfo.h | 19 |
5 files changed, 40 insertions, 0 deletions
diff --git a/src/KingSystem/ActorSystem/CMakeLists.txt b/src/KingSystem/ActorSystem/CMakeLists.txt index abc4c10f..911a3277 100644 --- a/src/KingSystem/ActorSystem/CMakeLists.txt +++ b/src/KingSystem/ActorSystem/CMakeLists.txt @@ -1,4 +1,6 @@ target_sources(uking PRIVATE + Profiles/actPlayerBase.cpp + Profiles/actPlayerBase.h Profiles/actRopeBase.cpp Profiles/actRopeBase.h @@ -69,6 +71,8 @@ target_sources(uking PRIVATE actInstParamPack.cpp actInstParamPack.h actLifeRecoveryInfo.h + actPlayerInfo.cpp + actPlayerInfo.h actTag.h actionDummyAction.cpp diff --git a/src/KingSystem/ActorSystem/Profiles/actPlayerBase.cpp b/src/KingSystem/ActorSystem/Profiles/actPlayerBase.cpp new file mode 100644 index 00000000..abc059cd --- /dev/null +++ b/src/KingSystem/ActorSystem/Profiles/actPlayerBase.cpp @@ -0,0 +1 @@ +#include "KingSystem/ActorSystem/Profiles/actPlayerBase.h" diff --git a/src/KingSystem/ActorSystem/Profiles/actPlayerBase.h b/src/KingSystem/ActorSystem/Profiles/actPlayerBase.h new file mode 100644 index 00000000..47c9cace --- /dev/null +++ b/src/KingSystem/ActorSystem/Profiles/actPlayerBase.h @@ -0,0 +1,15 @@ +#pragma once + +#include <prim/seadSafeString.h> + +namespace ksys::act { + +// TODO +class PlayerBase { +public: + // FIXME: name for x and name+type for y + void switchEquipment(const sead::SafeString& slot, int frames, int x = -1, + const uintptr_t& y = {}); +}; + +} // namespace ksys::act diff --git a/src/KingSystem/ActorSystem/actPlayerInfo.cpp b/src/KingSystem/ActorSystem/actPlayerInfo.cpp new file mode 100644 index 00000000..fca8b658 --- /dev/null +++ b/src/KingSystem/ActorSystem/actPlayerInfo.cpp @@ -0,0 +1 @@ +#include "KingSystem/ActorSystem/actPlayerInfo.h" diff --git a/src/KingSystem/ActorSystem/actPlayerInfo.h b/src/KingSystem/ActorSystem/actPlayerInfo.h new file mode 100644 index 00000000..9ceb53b2 --- /dev/null +++ b/src/KingSystem/ActorSystem/actPlayerInfo.h @@ -0,0 +1,19 @@ +#pragma once + +#include <heap/seadDisposer.h> + +namespace ksys::act { + +class PlayerBase; + +// TODO +class PlayerInfo { + SEAD_SINGLETON_DISPOSER(PlayerInfo) + PlayerInfo(); + virtual ~PlayerInfo(); + +public: + PlayerBase* getPlayer() const; +}; + +} // namespace ksys::act |
