Skip to content
This repository has been archived by the owner on Aug 31, 2020. It is now read-only.

Latest commit

 

History

History
76 lines (66 loc) · 1.46 KB

README.md

File metadata and controls

76 lines (66 loc) · 1.46 KB

USF

Undead(Game)StorageFormat

USF-File format – parser for Java

Build Status Coverage Status

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.

Data-Types

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
  • Higher Level Types
    • MapList
      • combining multiple Key-Value pairs

USF Format

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=
]