Browse CVS Repository
Contents of /freetrain/FreeTrain/core/plugin.rnc
Parent Directory
| Revision Log
| Revision Graph
Revision 1.3 -
( show annotations)
( download)
Tue Feb 4 02:32:53 2003 UTC
(21 years, 2 months ago)
by kkawa
Branch: MAIN
CVS Tags: kohsuke-checkpoint-20031229, HEAD
Branch point for: BRANCH_VS2008, C477_Unofficial200309
Changes since 1.2: +15 -18 lines
changed <hideFromComputer/> to <computerCannotBuild/>
| 1 |
# |
| 2 |
# schema fro FreeTrain plugin.xml files |
| 3 |
# |
| 4 |
# core module |
| 5 |
# |
| 6 |
# $id:$ |
| 7 |
# |
| 8 |
|
| 9 |
include "picture.rnc" |
| 10 |
|
| 11 |
start = |
| 12 |
element plug-in { |
| 13 |
element title {text}, # title of this plug-in |
| 14 |
element author {text}*, # author |
| 15 |
element homepage {text}?, # homepage |
| 16 |
|
| 17 |
# contributions |
| 18 |
element contribution { |
| 19 |
attribute id{xs:token}, # unique identifier of this contribution |
| 20 |
contribution |
| 21 |
}* |
| 22 |
} |
| 23 |
|
| 24 |
# land builder contribution |
| 25 |
contribution |= |
| 26 |
attribute type {"landBuilder"}, |
| 27 |
element name {text}, # name of this land builder |
| 28 |
element lands { |
| 29 |
list { guid } # GUID of land contributions to be placed |
| 30 |
} |
| 31 |
|
| 32 |
|
| 33 |
structureContribution = |
| 34 |
element name {text}?, # name of the structure |
| 35 |
element group {text}?, # name ot the group this structure belongs to. |
| 36 |
# either name or group must be present |
| 37 |
|
| 38 |
# presence of this element indicates that the structure |
| 39 |
# may not be built by the computer algorithm. |
| 40 |
element hideFromComputer {empty}?, |
| 41 |
|
| 42 |
# presence of this element indicates that the player |
| 43 |
# may not build this structure |
| 44 |
element hideFromPlayer {empty}? |
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
# |
| 51 |
# datatypes |
| 52 |
# |
| 53 |
|
| 54 |
# GUID |
| 55 |
guid = |
| 56 |
text; |
| |