mirror of
https://github.com/fedddddd/iw5-gsc-utils.git
synced 2025-04-21 05:15:44 +00:00
And this
This commit is contained in:
parent
063caa51f9
commit
6f53ed5d87
@ -73,6 +73,18 @@ namespace scripting
|
|||||||
{
|
{
|
||||||
return {this->id_, this->get_value_id(key)};
|
return {this->id_, this->get_value_id(key)};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
array_value operator[](const array_key& key) const
|
||||||
|
{
|
||||||
|
if (key.is_integer)
|
||||||
|
{
|
||||||
|
return {this->id_, this->get_value_id(key.index)};
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return {this->id_, this->get_value_id(key.key)};
|
||||||
|
}
|
||||||
|
}
|
||||||
private:
|
private:
|
||||||
unsigned int id_;
|
unsigned int id_;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user