summaryrefslogtreecommitdiff
path: root/src/KingSystem/ActorSystem/actInfoData.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2021-01-09 16:59:00 +0100
committerLéo Lam <leo@leolam.fr>2021-01-09 17:23:38 +0100
commit8569722db68dc01024ffbbc852cf66e3a80a89c9 (patch)
tree5524ee40b5d898a8b29e2f8ffa0ff4ff2b485aab /src/KingSystem/ActorSystem/actInfoData.cpp
parent9069c4e9f8ef1b7622f62e1f57e2a526364c9e5d (diff)
ksys/act: Start adding actInfoCommon
Diffstat (limited to 'src/KingSystem/ActorSystem/actInfoData.cpp')
-rw-r--r--src/KingSystem/ActorSystem/actInfoData.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/KingSystem/ActorSystem/actInfoData.cpp b/src/KingSystem/ActorSystem/actInfoData.cpp
index 9d6427cb..c23a94de 100644
--- a/src/KingSystem/ActorSystem/actInfoData.cpp
+++ b/src/KingSystem/ActorSystem/actInfoData.cpp
@@ -204,7 +204,7 @@ void InfoData::getRecipeInfo(const char* actor, InfoData::RecipeInfo& info) cons
}
}
-s32 InfoData::getIntByKey(const al::ByamlIter& iter, const char* key, s32 default_) {
+s32 InfoData::getIntByKey(const al::ByamlIter& iter, const char* key, s32 default_, bool) {
s32 value;
return iter.tryGetIntByKey(&value, key) ? value : default_;
}
@@ -511,12 +511,12 @@ bool InfoData::getBool(const char* actor, const char* key, bool default_, bool x
return getBoolByKey(iter, key, default_);
}
-f32 InfoData::getFloatByKey(const al::ByamlIter& iter, const char* key, f32 default_) {
+f32 InfoData::getFloatByKey(const al::ByamlIter& iter, const char* key, f32 default_, bool) {
f32 value;
return iter.tryGetFloatByKey(&value, key) ? value : default_;
}
-bool InfoData::getBoolByKey(const al::ByamlIter& iter, const char* key, bool default_) {
+bool InfoData::getBoolByKey(const al::ByamlIter& iter, const char* key, bool default_, bool) {
bool value;
return iter.tryGetBoolByKey(&value, key) ? value != 0 : default_;
}