forked from rosebudai/OpenRCT2-Web
Refactor list view so we can access it from ScWidget
This commit is contained in:
1 parent
faf59598e5
commit
5e427413a6
8 files changed
+706
-584
No files matched your search
@@ -1136,6 +1136,13 @@ std::string OpenRCT2::Scripting::Stringify(const DukValue& val)
|
||||
return ExpressionStringifier::StringifyExpression(val);
|
||||
}
|
||||
|
||||
std::string OpenRCT2::Scripting::ProcessString(const DukValue& value)
|
||||
{
|
||||
if (value.type() == DukValue::Type::STRING)
|
||||
return language_convert_string(value.as_string());
|
||||
return {};
|
||||
}
|
||||
|
||||
bool OpenRCT2::Scripting::IsGameStateMutable()
|
||||
{
|
||||
// Allow single player to alter game state anywhere
|
||||
|
||||
Reference in new issue
Block a user