Changes between Version 2 and Version 3 of Entity
- Timestamp:
- Jun 27, 2012, 6:41:35 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Entity
v2 v3 15 15 == Modifying entities == 16 16 17 Currently there is no special editor for entity templates (as there is for actors), so it's best to use a decent text editor like Notepad++ on Windows. 17 Currently there is no special editor for entity templates (as there is for actors), so it's best to use a decent text editor like Notepad++ on Windows. Existing entity templates can be used as examples, along with the [http://svn.wildfiregames.com/entity-docs/ entity documentation]. 18 19 == Special entities == 20 21 There are also special entities which are not in the same category as units and structures. Players are considered to be entities in the game, as are formations. There is a so-called "system entity" which is created at the start of a game, it's associated with certain global system components like player manager and territory manager, which are not related to a single entity or player. 18 22 19 23 == Entity XML format == … … 58 62 It can be seen that this template inherits from "template_unit" (and all of its parents, too). 59 63 60 Entity templates must comply with the [http://relaxng.org/ schema] or they won't validate, causing an error when trying to use the entity in-game or Atlas. Each component adds to the schema those elements which it allows to be specified in the template, as documented [http://svn.wildfiregames.com/entity-docs/ here]. .An element may be required or optional, it may have attributes or not; and its data may be restricted in type, limited to a set of predefined choices, or it may allow arbitrary text.64 Entity templates must comply with the [http://relaxng.org/ schema] or they won't validate, causing an error when trying to use the entity in-game or Atlas. Each component adds to the schema those elements which it allows to be specified in the template, as documented [http://svn.wildfiregames.com/entity-docs/ here]. An element may be required or optional, it may have attributes or not; and its data may be restricted in type, limited to a set of predefined choices, or it may allow arbitrary text. 61 65 62 66 Typical reasons for a template not validating include: