mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 17:44:56 +00:00
string_view refactor
This commit is contained in:
@@ -131,31 +131,6 @@ public:
|
||||
TAreaId xc_areaId;
|
||||
};
|
||||
|
||||
class CAudioMenu
|
||||
{
|
||||
public:
|
||||
enum class EMenu
|
||||
{
|
||||
};
|
||||
struct SMenuOption
|
||||
{
|
||||
SMenuOption(const std::string&, s32, s32, s32);
|
||||
void BuildDrawableString();
|
||||
};
|
||||
|
||||
private:
|
||||
public:
|
||||
CAudioMenu()=default;
|
||||
void SetIsHighlighted(bool);
|
||||
void AddOption(const SMenuOption&);
|
||||
void ProcessControllerInput(const CFinalInput&);
|
||||
u32 GetSelectionIndex() const;
|
||||
const SMenuOption& GetOption(s32) const;
|
||||
SMenuOption& Option(s32);
|
||||
void SetSelectionIndex(s32);
|
||||
void Draw(EMenu) const;
|
||||
};
|
||||
|
||||
private:
|
||||
enum class EZoomState
|
||||
{
|
||||
|
||||
@@ -83,7 +83,7 @@ public:
|
||||
CMapWorldData(CInputStream& in, u32 version);
|
||||
CAssetId GetWorldAssetId() const { return x10_worldAssetId; }
|
||||
const zeus::CVector3f& GetWorldCenterPoint() const { return x64_centerPoint; }
|
||||
const std::string& GetWorldLabel() const { return x0_label; }
|
||||
std::string_view GetWorldLabel() const { return x0_label; }
|
||||
const zeus::CTransform& GetWorldTransform() const { return x14_transform; }
|
||||
const zeus::CTransform& GetMapAreaData(s32 idx) const { return x44_hexagonXfs[idx]; }
|
||||
u32 GetNumMapAreaDatas() const { return x44_hexagonXfs.size(); }
|
||||
|
||||
Reference in New Issue
Block a user