2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-11 13:07:42 +00:00

IAnimReader: Make use of std::string_view where applicable

Same behavior, but allows interoperating with different string types in
a more straightforward manner.
This commit is contained in:
Lioncash
2020-03-31 03:05:05 -04:00
parent 13ce419554
commit 2c36b0bb83
11 changed files with 34 additions and 33 deletions

View File

@@ -2,6 +2,7 @@
#include <memory>
#include <optional>
#include <string_view>
#include "Runtime/CToken.hpp"
#include "Runtime/RetroTypes.hpp"
@@ -120,9 +121,9 @@ public:
u32) const = 0;
virtual u32 VGetSoundPOIList(const CCharAnimTime& time, CSoundPOINode* listOut, u32 capacity, u32 iterator,
u32) const = 0;
virtual bool VGetBoolPOIState(const char*) const = 0;
virtual s32 VGetInt32POIState(const char*) const = 0;
virtual CParticleData::EParentedMode VGetParticlePOIState(const char*) const = 0;
virtual bool VGetBoolPOIState(std::string_view name) const = 0;
virtual s32 VGetInt32POIState(std::string_view name) const = 0;
virtual CParticleData::EParentedMode VGetParticlePOIState(std::string_view name) const = 0;
virtual void VGetSegStatementSet(const CSegIdList& list, CSegStatementSet& setOut) const = 0;
virtual void VGetSegStatementSet(const CSegIdList& list, CSegStatementSet& setOut,
const CCharAnimTime& time) const = 0;