mirror of
https://github.com/fedddddd/iw5-gsc-utils.git
synced 2025-04-20 13:05:42 +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)};
|
||||
}
|
||||
|
||||
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:
|
||||
unsigned int id_;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user