2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 02:27:42 +00:00

CActorModelParticles: Make GetParticleDGRPTokens take a std::string_view

Same behavior, but provides a more type-safe interface. All internal
functions called within the function operate on std::string_view
anyways.
This commit is contained in:
Lioncash
2020-04-03 00:35:26 -04:00
parent 75aa359855
commit ad30f0c61c
2 changed files with 12 additions and 9 deletions

View File

@@ -2,6 +2,7 @@
#include <list>
#include <memory>
#include <string_view>
#include <utility>
#include <vector>
@@ -137,7 +138,7 @@ private:
u8 xe5_justLoadedDeps = 0;
u8 xe6_loadedDeps = 0;
Dependency GetParticleDGRPTokens(const char* name);
Dependency GetParticleDGRPTokens(std::string_view name) const;
void LoadParticleDGRPs();
std::unique_ptr<CElementGen> MakeOnFireGen() const;
@@ -158,6 +159,7 @@ public:
void AddStragglersToRenderer(const CStateManager& mgr);
void Update(float dt, CStateManager& mgr);
void SetupHook(TUniqueId uid);
std::list<CItem>::iterator FindSystem(TUniqueId uid);
std::list<CItem>::const_iterator FindSystem(TUniqueId uid) const;
std::list<CItem>::iterator FindOrCreateSystem(CActor& act);
void StartIce(CActor& actor);