diff options
| author | Léo Lam <leo@leolam.fr> | 2020-12-09 18:32:25 +0100 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2020-12-09 20:43:22 +0100 |
| commit | 930b780cd1513e1dd92bc114cde58adb552159a6 (patch) | |
| tree | 11e767a103695841a90afdc922e088c2b47b4ae2 /src/KingSystem/Resource/resResourceAIProgram.h | |
| parent | fcbe17a3f0db98bdafdfd917210b03019de2d31f (diff) | |
ksys/act: Implement more Query functions
Diffstat (limited to 'src/KingSystem/Resource/resResourceAIProgram.h')
| -rw-r--r-- | src/KingSystem/Resource/resResourceAIProgram.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/KingSystem/Resource/resResourceAIProgram.h b/src/KingSystem/Resource/resResourceAIProgram.h index a7781937..9fdf53d9 100644 --- a/src/KingSystem/Resource/resResourceAIProgram.h +++ b/src/KingSystem/Resource/resResourceAIProgram.h @@ -64,12 +64,14 @@ public: const sead::Buffer<BehaviorDef>& getBehaviors() const { return mBehaviors; } const sead::Buffer<QueryDef>& getQueries() const { return mQueries; } - bool getSInstParam(sead::SafeString* value, const Definition& def, + bool getSInstParam(const char** value, const Definition& def, const sead::SafeString& param_name) const; - bool getSInstParam(const f32** value, const Definition& def, + bool getSInstParam(sead::SafeString* value, const Definition& def, const sead::SafeString& param_name) const; bool getSInstParam(const s32** value, const Definition& def, const sead::SafeString& param_name) const; + bool getSInstParam(const f32** value, const Definition& def, + const sead::SafeString& param_name) const; bool getSInstParam(const sead::Vector3f** value, const Definition& def, const sead::SafeString& param_name) const; bool getSInstParam(const bool** value, const Definition& def, @@ -129,10 +131,4 @@ inline bool AIProgram::getSInstParam_(const T** value, const AIProgram::Definiti return true; } -inline bool AIProgram::getSInstParam(const f32** value, const AIProgram::Definition& def, - const sead::SafeString& param_name) const { - static const f32 sDefault{}; - return getSInstParam_(value, def, param_name, agl::utl::ParameterType::F32, &sDefault); -} - } // namespace ksys::res |
