mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 04:21:50 +00:00
bindings, controls.json file
This commit is contained in:
parent
e3743b8463
commit
9051db3526
11 changed files with 186 additions and 22 deletions
|
|
@ -258,6 +258,10 @@ JObject& JObject::put(string key, string value){
|
|||
return *this;
|
||||
}
|
||||
|
||||
JObject& JObject::put(std::string key, const char* value) {
|
||||
return put(key, string(value));
|
||||
}
|
||||
|
||||
JObject& JObject::put(string key, JObject* value){
|
||||
auto found = map.find(key);
|
||||
if (found != map.end()) delete found->second;
|
||||
|
|
|
|||
|
|
@ -81,6 +81,7 @@ namespace json {
|
|||
JObject& put(std::string key, int value);
|
||||
JObject& put(std::string key, float value);
|
||||
JObject& put(std::string key, double value);
|
||||
JObject& put(std::string key, const char* value);
|
||||
JObject& put(std::string key, std::string value);
|
||||
JObject& put(std::string key, JObject* value);
|
||||
JObject& put(std::string key, JArray* value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue