A Proposal for a Shadowrun XML Standard

equipment

root/equipmentlist/equipment
Back

Namespace:
Filename:

Content: refid (type: string) , count (type: float) ?, units (type: string) ?, carried (type: boolean) ?, equipped (type: boolean) ?, location (type: bodylocation) *, quality (type: string) ?, condition (type: int) ?, cost (type: float) ?, name (type: string) ?, note (type: string) ?, unique (type: namevaluelist) ?, appdata (type: customdata) *, contains (type: equipmentlist) ?

Description: The equipment tag describes a use of a predefined item of equipment carried by the character, or any other item that the character owns that is not considered an asset or transport. The tag details the particular instance of the item itself, not the full details of the equipment. The details of the standard equipment are assumed to be detailed elsewhere (a database, usually) and referenced by this usage tag, via the refid tag.


Code Fragment

<xs:complexType name="equipment">
  <xs:sequence>
    <xs:element type="xs:string" name="refid"/>
    <xs:element type="xs:float" name="count" minOccurs="0" maxOccurs="1"/>
    <xs:element type="xs:string" name="units" minOccurs="0" maxOccurs="1"/>
    <xs:element type="xs:boolean" name="carried" minOccurs="0" maxOccurs="1"/>
    <xs:element type="xs:boolean" name="equipped" minOccurs="0" maxOccurs="1"/>
    <xs:element type="bodylocation" name="location" minOccurs="0" maxOccurs="unbounded"/>
    <xs:element type="xs:string" name="quality" minOccurs="0" maxOccurs="1"/>
    <xs:element type="xs:int" name="condition" minOccurs="0" maxOccurs="1"/>
    <xs:element type="xs:float" name="cost" minOccurs="0" maxOccurs="1"/>
    <xs:element type="xs:string" name="name" minOccurs="0" maxOccurs="1"/>
    <xs:element type="xs:string" name="note" minOccurs="0" maxOccurs="1"/>
    <xs:element type="namevaluelist" name="unique" minOccurs="0" maxOccurs="1"/>
    <xs:element type="customdata" name="appdata" minOccurs="0" maxOccurs="unbounded"/>
    <xs:element type="equipmentlist" name="contains" minOccurs="0" maxOccurs="1"/>
  </xs:sequence>
</xs:complexType>