mirror of
https://github.com/fedddddd/iw5-gsc-utils.git
synced 2025-07-03 09:41:51 +00:00
Add some array methods
This commit is contained in:
@ -30,21 +30,24 @@ namespace scripting
|
||||
array(std::unordered_map<std::string, script_value>);
|
||||
|
||||
std::vector<array_key> get_keys() const;
|
||||
unsigned int size() const;
|
||||
|
||||
int size() const;
|
||||
void push(script_value) const;
|
||||
unsigned int push(script_value) const;
|
||||
void erase(const unsigned int index) const;
|
||||
void erase(const std::string& key) const;
|
||||
script_value pop() const;
|
||||
|
||||
script_value get(const std::string&) const;
|
||||
script_value get(const unsigned int) const;
|
||||
|
||||
void set(const std::string&, const script_value&) const;
|
||||
void set(const unsigned int, const script_value&) const;
|
||||
|
||||
unsigned int get_entity_id() const;
|
||||
|
||||
unsigned int get_value_id(const std::string&) const;
|
||||
unsigned int get_value_id(const unsigned int) const;
|
||||
|
||||
void set(const std::string&, const script_value&) const;
|
||||
void set(const unsigned int, const script_value&) const;
|
||||
|
||||
entity get_raw() const;
|
||||
|
||||
array_value array::operator[](const int index) const
|
||||
|
Reference in New Issue
Block a user