Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get game config and schema to use some common types
This also fixes an invalid type issue in the GUI2 schema, and allows types to be a direct alias for other types.
- Loading branch information
1 parent
a7072ef
commit cfff037
Showing
5 changed files
with
64 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,30 @@ | ||
|
||
# The "formula" and "f_string" types are currently the same as "string" | ||
# They're provided as separate types only for documentation purposes | ||
[type] | ||
name=formula | ||
value=".*" | ||
[/type] | ||
[type] | ||
name=f_string | ||
value=".*" | ||
[/type] | ||
[type] | ||
name=f_int | ||
value="-?\d+|\(.*\)" | ||
[/type] | ||
# Note that basic.cfg must also be included for these to work! | ||
|
||
#define FORMULA_TYPE BASE | ||
[type] | ||
name=f_real | ||
value="(-?\d+(\.\d+))|\(.*\)?" | ||
name=f_{BASE} | ||
[union] | ||
[type] | ||
link={BASE} | ||
[/type] | ||
[type] | ||
value="\(.*\)\s*" | ||
[/type] | ||
[/union] | ||
[/type] | ||
#enddef | ||
|
||
# The "formula", "function", and "f_string" types are currently the same as "string" | ||
# They're provided as separate types only for documentation purposes | ||
{ALIAS_TYPE formula string} | ||
{ALIAS_TYPE function string} | ||
{ALIAS_TYPE f_string string} | ||
|
||
{FORMULA_TYPE bool} | ||
{FORMULA_TYPE int} | ||
{FORMULA_TYPE unsigned} | ||
{FORMULA_TYPE real} | ||
{FORMULA_TYPE color} | ||
{FORMULA_TYPE point} | ||
{FORMULA_TYPE t_string} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters