Difference between revisions of "Starward Rogue:XML - BulletPattern Definitions"
Jump to navigation
Jump to search
Line 10: | Line 10: | ||
In a file in Configuration/EntitySystem/ : | In a file in Configuration/EntitySystem/ : | ||
+ | <pre> | ||
<system name="TestWeapon" | <system name="TestWeapon" | ||
category="Weapon" | category="Weapon" | ||
Line 22: | Line 23: | ||
special_bullet_patterns="TestVariablePattern" | special_bullet_patterns="TestVariablePattern" | ||
> | > | ||
− | </system> | + | </system></pre> |
[[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:41, 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>