Add json functions

This commit is contained in:
Federico Cecchetto
2021-05-30 22:44:19 +02:00
parent 4697f6136b
commit d5e6a15175
7 changed files with 246 additions and 19 deletions

View File

@ -58,7 +58,7 @@ namespace scripting
throw std::runtime_error("Null pointer");
}
return reinterpret_cast<T*>(this->get<int>());
return reinterpret_cast<T*>(value);
}
const game::VariableValue& get_raw() const;