Skip to content

Instantly share code, notes, and snippets.

@API-Beast
Last active August 29, 2015 14:03
Show Gist options
  • Save API-Beast/928cef251680d7341a10 to your computer and use it in GitHub Desktop.
Save API-Beast/928cef251680d7341a10 to your computer and use it in GitHub Desktop.
Short XINI format description

Example

Settings
{
  Name=John
  FavMaps=[Intro, "The Final Battle"]

  [Video]
  Resolution=500x800
  Bitdepth=32
  
  [Audio]
  Voice=0.5
  Environment=0.8

  Gameplay
  {
    Difficulty=Easy
  }
}
  • [Foo]
    • Sets the context to a new object with name "Foo" as child of the current context, until the next [Bar] block is encountered.
  • Foo{ [...] }
    • Sets the context to a new object with name "Foo" as child of the current context until the appropriate close bracket is encountered.
  • Value = String
    • Sets Value in the current context to String. Whitespace at the beginning and end of a value is ignored.
  • Value = " String"
    • Sets Value in the current context to String ignoring the quotation marks, but not the whitespace inside them.
  • Value = ["A", "B", "C"]
    • Sets Value in the current context to a array with the elements "A", "B" and "C".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment