uking/ui: Add more inventory functions

This commit is contained in:
Léo Lam
2021-01-08 19:33:10 +01:00
parent 23b3047f49
commit 3ce19016ec
8 changed files with 432 additions and 28 deletions
@@ -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
@@ -0,0 +1 @@
#include "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
@@ -0,0 +1 @@
#include "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