Undead(Game)StorageFormat
USF is a JSON-like file format allowing to store basic data types in Lists, Pairs and multiple nesting of these.
See the Wiki for examples and JavaDoc for documentation.
All USF-Data-Types are subclasses of the main USF-Data-Type called Atom
.
- Basic Data Types
- String
- Boolean
- Integer
- Real
- a double data type
- Structures
- List
- combining multiple Atoms
- Pair
- combining two Atoms
- List
- Higher Level Types
- MapList
- combining multiple Key-Value pairs
- MapList
The normal USF Format is a one-line string, which contains all the data.
[true,[false,100,20,-12,{\"test\":{\"a\":false}},{{:}:{[true,true]:-12}}],=1.0=,=-11.02=]
For debugging and other cases one can use the human friendly output.
(Method toHumFrieUSF()
instead of toUSF()
and parseHumFrie()
instead of parse()
)
[
true,
[
false,
100,
20,
-12,
{
"test"
:
{
"a"
:
false
}
},
{
{:}
:
{
[
true,
true
]
:
-12
}
}
],
=1.0=,
=-11.02=
]