Small change

This commit is contained in:
Federico Cecchetto
2021-06-26 00:42:00 +02:00
parent bdfd37de35
commit 44886c8f9f
4 changed files with 26 additions and 2 deletions

View File

@ -103,6 +103,24 @@ namespace scripting
this->value_ = variable;
}
script_value::script_value(const array& value)
{
game::VariableValue variable{};
variable.type = game::SCRIPT_OBJECT;
variable.u.pointerValue = value.get_entity_id();
this->value_ = variable;
}
script_value::script_value(const function& value)
{
game::VariableValue variable{};
variable.type = game::SCRIPT_OBJECT;
variable.u.codePosValue = value.get_pos();
this->value_ = variable;
}
/***************************************************************
* Integer
**************************************************************/