A Proposal for a Shadowrun XML Standard

weapondef

root/geardeflist/weapondef
Back

Namespace:
Filename:

Extends: geardef

Appends: damage (Type: string) , range (Type: rangetype) ?, ammo (Type: byte) ?, ammotype (Type: ammotype) ?, mode (Type: string) ?, reach (Type: byte) ?, strengthmin (Type: byte) ?, intelligence (Type: byte) ?, handling (Type: byte) ?, speed (Type: byte) ?, maxrange (Type: byte) ?, body (Type: byte) ?, sig (Type: byte) ?, sigsonar (Type: byte) ?, included (Type: reflist) ?

Description: The weapondef tag defines a weapon. This schema does not describe a specific useage of the weapon, merely the generic attributes of the item.

The category tag must contain the following:


Code Fragment

<xs:elementtype name="weapondef">
  <xs:extends type="geardef">
    <xs:model>
      <xs:sequence>
        <xs:element type="xs:string" name="damage"/>
        <xs:element type="rangetype" name="range" occurs="?"/>
        <xs:element type="xs:byte" name="ammo" occurs="?"/>
        <xs:element type="ammotype" name="ammotype" occurs="?"/>
        <xs:element type="xs:string" name="mode" occurs="?"/>
        <xs:element type="xs:byte" name="reach" occurs="?"/>
        <xs:element type="xs:byte" name="strengthmin" occurs="?"/>
        <xs:element type="xs:byte" name="intelligence" occurs="?"/>
        <xs:element type="xs:byte" name="handling" occurs="?"/>
        <xs:element type="xs:byte" name="speed" occurs="?"/>
        <xs:element type="xs:byte" name="maxrange" occurs="?"/>
        <xs:element type="xs:byte" name="body" occurs="?"/>
        <xs:element type="xs:byte" name="sig" occurs="?"/>
        <xs:element type="xs:byte" name="sigsonar occurs="?"/>
        <xs:element type="reflist" name="included" occurs="?"/>
      </xs:sequence>
    </xs:model>
  </xs:extends>
</xs:elementtype>