Difference between revisions of "Starward Rogue:XML - BulletPattern Definitions"
Jump to navigation
Jump to search
(Created page with "Starward Rogue XML Documentation Main Category:Starward Rogue") |
|||
Line 1: | Line 1: | ||
+ | |||
+ | == Overview == | ||
+ | |||
+ | Unlike the other things being read in (GameEntity, EntitySystem, etc) this is more of a programming language than a chunk of data. That is, it's imperative as much as it is descriptive. | ||
+ | |||
+ | It's also different in that it relies heavily on template "variables" to avoid duplicating a lot of xml when you want your bullets to do the same or similar thing a lot. | ||
+ | |||
+ | Here's an example usage: | ||
+ | |||
+ | In a file in Configuration/EntitySystem/ : | ||
+ | |||
+ | <system name="TestWeapon" | ||
+ | category="Weapon" | ||
+ | shot_type="BulletPointedYellow" | ||
+ | damage_type="Ballistic" | ||
+ | attack_power="40" | ||
+ | fire_rate="3" | ||
+ | range_actual="500" | ||
+ | shots_per_salvo="1" | ||
+ | targeting_logic="Lead" | ||
+ | firing_timing="AllTheTime" | ||
+ | special_bullet_patterns="TestVariablePattern" | ||
+ | > | ||
+ | </system> | ||
+ | |||
[[Starward_Rogue:Main#XML_Documentation|Starward Rogue XML Documentation Main]] | [[Starward_Rogue:Main#XML_Documentation|Starward Rogue XML Documentation Main]] | ||
[[Category:Starward Rogue]] | [[Category:Starward Rogue]] |
Revision as of 18:33, 21 November 2015
Overview
Unlike the other things being read in (GameEntity, EntitySystem, etc) this is more of a programming language than a chunk of data. That is, it's imperative as much as it is descriptive.
It's also different in that it relies heavily on template "variables" to avoid duplicating a lot of xml when you want your bullets to do the same or similar thing a lot.
Here's an example usage:
In a file in Configuration/EntitySystem/ :
<system name="TestWeapon" category="Weapon" shot_type="BulletPointedYellow" damage_type="Ballistic" attack_power="40" fire_rate="3" range_actual="500" shots_per_salvo="1" targeting_logic="Lead" firing_timing="AllTheTime" special_bullet_patterns="TestVariablePattern" > </system>