Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a schema file for the _server.pbl
- Loading branch information
1 parent
26d1ca7
commit 67ee332
Showing
1 changed file
with
40 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
[wml_schema] | ||
{./macros.cfg} | ||
{./types/basic.cfg} | ||
[type] | ||
name="version" | ||
value="\d+\.\d+(\.\d+).*" | ||
[/type] | ||
[type] | ||
name="addon_type" | ||
value="core|campaign|scenario|campaign_sp_mp|era|faction|map_pack|campaign_mp|scenario_mp|mod_mp|media|other" | ||
[/type] | ||
[type] | ||
# This is a very loose definition of an email, but it should be sufficient for our purposes. | ||
name="email" | ||
value="[^@]+@[^@]+\.[^@.]+" | ||
[/type] | ||
[tag] | ||
name="root" | ||
{SIMPLE_KEY icon string} | ||
{REQUIRED_KEY title string} | ||
{REQUIRED_KEY version version} | ||
{REQUIRED_KEY author string} | ||
{REQUIRED_KEY passphrase string} | ||
{REQUIRED_KEY description string} | ||
{SIMPLE_KEY tags string} | ||
{SIMPLE_KEY type addon_type} | ||
{SIMPLE_KEY email email} | ||
[if] | ||
[not] | ||
type=core | ||
[/not] | ||
[then] | ||
{SIMPLE_KEY core string} | ||
[/then] | ||
[/if] | ||
[tag] | ||
name="feedback" | ||
{REQUIRED_KEY topic_id unsigned} | ||
[/tag] | ||
[/wml_schema] |