mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
the shortcut
This commit is contained in:
parent
635e512142
commit
30a38035e2
35 changed files with 90 additions and 84 deletions
|
|
@ -325,6 +325,11 @@ Map& Map::put(std::string key, bool value){
|
|||
return *this;
|
||||
}
|
||||
|
||||
Map& Map::put(std::string key, std::unique_ptr<Value> value) {
|
||||
values.emplace(key, value.release());
|
||||
return *this;
|
||||
}
|
||||
|
||||
List& Map::putList(std::string key) {
|
||||
List* arr = new List();
|
||||
put(key, arr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue