mirror of
https://github.com/zeldaret/botw
synced 2026-06-10 20:58:31 -04:00
uking/ui: Add more inventory functions
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user