mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 22:41:49 +00:00
lua json library
This commit is contained in:
parent
30a38035e2
commit
8e4f8004f7
9 changed files with 126 additions and 31 deletions
|
|
@ -33,9 +33,9 @@ namespace dynamic {
|
|||
Value(valtype type, valvalue value);
|
||||
~Value();
|
||||
|
||||
static Value boolean(bool value);
|
||||
static Value of(number_u value);
|
||||
static Value of(const std::string& value);
|
||||
static std::unique_ptr<Value> boolean(bool value);
|
||||
static std::unique_ptr<Value> of(number_u value);
|
||||
static std::unique_ptr<Value> of(const std::string& value);
|
||||
};
|
||||
|
||||
class List {
|
||||
|
|
@ -68,6 +68,7 @@ namespace dynamic {
|
|||
List& put(Map* value);
|
||||
List& put(List* value);
|
||||
List& put(bool value);
|
||||
List& put(std::unique_ptr<Value> value);
|
||||
|
||||
Value* getValueWriteable(size_t index) const;
|
||||
|
||||
|
|
@ -121,6 +122,7 @@ namespace dynamic {
|
|||
Map& putMap(std::string key);
|
||||
|
||||
bool has(std::string key);
|
||||
size_t size() const;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue