6 #include <UniginePtr.h> 7 #include <UnigineString.h> 8 #include <UnigineVector.h> 10 #include "UnigineEditorGlobal.h" 12 namespace UnigineEditor
16 class UNIGINE_EDITOR_API
Collection :
public Unigine::APIInterface
35 static Unigine::Ptr<Collection> create();
44 bool hasValue(
const char *value_name)
const;
46 Unigine::Vector<Unigine::String> getNames()
const;
50 bool remove(
const char *value_name);
57 void setBool(
const char *value_name,
bool value);
61 bool getBool(
const char *value_name,
bool default_value =
false)
const;
65 void setInt(
const char *value_name,
int value);
69 int getInt(
const char *value_name,
int default_value = 0)
const;
73 void setFloat(
const char *value_name,
float value);
77 float getFloat(
const char *value_name,
float default_value = 0)
const;
81 void setString(
const char *value_name,
const char *value);
85 Unigine::String getString(
const char *value_name,
const char *default_value =
nullptr)
const;
87 typedef Unigine::Ptr<Collection> CollectionPtr;
This class is used to represent a collection of values (boolean, integer, float, or string) that can ...
Definition: UnigineCollection.h:16
TYPE
Value type.
Definition: UnigineCollection.h:21
Boolean value type.
Definition: UnigineCollection.h:26
String value type.
Definition: UnigineCollection.h:32
Integer value type.
Definition: UnigineCollection.h:28
Float value type.
Definition: UnigineCollection.h:30