You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fallahn edited this page Feb 21, 2022
·
1 revision
crogine uses a simplified text-based file format for configuration files. It implements a simple object/property paradigm which can be nested, and reasonably represents any data type crogine needs without additional bloat. An example file may look like:
Objects are consider to have a name and an optional ID. They are denoted by the opening and closing braces, which include one or more properties and other objects. Properties can have values of:
string
float
int32
uint32
floatArray[2]
floatArray[3]
floatArray[4]
Further types such as colours or rectangles are represented by 4-component float arrays. Config files are read and written in crogine with the ConfigFile class, which contains functions not only for reading and writing files, but parsing and iterating the contained data.