mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-13 16:06:08 +00:00
CAiFuncMap: Store std::string_view instances instead of std::string
We only make use of static string entries, so we can make use of std::string view to elide several memory allocations.
This commit is contained in:
@@ -36,8 +36,8 @@ public:
|
||||
const CMaterialList& list, CAssetId fsm, const CActorParameters&, float f1, float f2);
|
||||
|
||||
static void CreateFuncLookup(CAiFuncMap* funcMap);
|
||||
static CAiStateFunc GetStateFunc(const char* func);
|
||||
static CAiTriggerFunc GetTrigerFunc(const char* func);
|
||||
static CAiStateFunc GetStateFunc(std::string_view func);
|
||||
static CAiTriggerFunc GetTriggerFunc(std::string_view func);
|
||||
|
||||
const CStateMachine* GetStateMachine() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user