| Line 1: |
Line 1: |
| | TyD (Tynan's Tidy Data Language) is an open source data language created by Tynan Sylvester, to improve the layout of game-oriented data. You can read the official specification [https://github.com/TynanSylvester/TyD here]. | | TyD (Tynan's Tidy Data Language) is an open source data language created by Tynan Sylvester, to improve the layout of game-oriented data. You can read the official specification [https://github.com/TynanSylvester/TyD here]. |
| − | ==Quick overview==
| + | =Quick overview= |
| | Values in TyD can be simple_values, “quoted strings”, numbers, lists, tables or null. Values can be given a name, making them a record of name/value. You can make a table using curly brackets, and putting a list of records in it, separated by new lines or semicolons, e.g. | | Values in TyD can be simple_values, “quoted strings”, numbers, lists, tables or null. Values can be given a name, making them a record of name/value. You can make a table using curly brackets, and putting a list of records in it, separated by new lines or semicolons, e.g. |
| | <nowiki>{ | | <nowiki>{ |
| Line 10: |
Line 10: |
| | You can put lists in tables and tables in lists, but note that when you put a table in a list, it shouldn’t have a name (since it’s not a record). A TyD Document should contain a list of records. Most TyD documents in Software Inc. contain a single table record. Localizations contain a list of string records. | | You can put lists in tables and tables in lists, but note that when you put a table in a list, it shouldn’t have a name (since it’s not a record). A TyD Document should contain a list of records. Most TyD documents in Software Inc. contain a single table record. Localizations contain a list of string records. |
| | | | |
| − | ==Example==
| + | =Example= |
| | '''Table''' | | '''Table''' |
| | {''#I'm a comment'' | | {''#I'm a comment'' |
| Line 38: |
Line 38: |
| | } | | } |
| | | | |
| − | ==In Software Inc.==
| + | =In Software Inc.= |
| | Software Inc. uses a fork of Tynan’s C# implementation of TyD, which you can find [https://github.com/khornel/TyDSharp here]. | | Software Inc. uses a fork of Tynan’s C# implementation of TyD, which you can find [https://github.com/khornel/TyDSharp here]. |
| | If you want to know why Software Inc. switched from XML to TyD, and not something else, [https://github.com/TynanSylvester/TyD#comparisons you should read the comparison section of the TyD specification]. Other than the reasons listed, TyD resembled C# a lot, which reduces friction during development and I would rather not rely on a third party closed-source solution when parsing data. | | If you want to know why Software Inc. switched from XML to TyD, and not something else, [https://github.com/TynanSylvester/TyD#comparisons you should read the comparison section of the TyD specification]. Other than the reasons listed, TyD resembled C# a lot, which reduces friction during development and I would rather not rely on a third party closed-source solution when parsing data. |