Difference between revisions of "Ship DNA"
From Backstage Lore Wiki
m (Protected "Ship DNA" [edit=sysop:move=sysop]) |
(removed a category) |
||
Line 1: | Line 1: | ||
− | + | [[Category:Development]] | |
{{note|this needs confirmation as to the expected structure when used within the IGB javascript call Client.ShowFitting(FittingID)}} | {{note|this needs confirmation as to the expected structure when used within the IGB javascript call Client.ShowFitting(FittingID)}} |
Revision as of 06:43, 12 August 2010
Full Description
The Ship DNA format is a short hand notation to describe a ship and its fitting purely through the use of the type ids of the modules, items and the ship itself. It follows this basic format.
First in the format is the ship id. This is followed by a colon (:). If T3 then this is followed by a list of 5 subsystems seperated with colons. This is followed by a list of module ids and quantity with colons (:) separating them. Each module id/quantity is in the format of <moduleID>;<quantity> Charges and Drones can also be included by listing them in the same fashion as modules.
All modules are assumed to be fit, therefore only include modules that will fit in the ship itself.
- DNA -> SHIP ':' HIGHS ':' MEDS ':' LOWS ':' RIGS ':' CHARGES
- SHIP -> SHIP_TYPE_ID ( ':' SUBSYSTEM_ID ':' SUBSYSTEM_ID ':' SUBSYSTEM_ID ':' SUBSYSTEM_ID ':' SUBSYSTEM_ID )
- HIGHS -> EMPTY | MODULE ( ':' MODULE )
- MEDS -> EMPTY | MODULE ( ':' MODULE )
- LOWS -> EMPTY | MODULE ( ':' MODULE )
- RIGS -> EMPTY | MODULE ( ':' MODULE )
- CHARGES -> EMPTY | CHARGE ( ':' CHARGE )
- MODULE -> QUANTITY ';' MODULE_ID
- CHARGE -> QUANTITY ';' CHARGE_ID
- SHIP_TYPE_ID -> the typeID of a ship
- SUBSYSTEM_ID -> the typeID of the fitted subsystems
- MODULE_ID -> the typeID of the fitted module
- CHARGE_ID -> the typeID of a charge or a drone
- QUANTITY -> an integer quantity of the type.
Condensed Form
Ship:Subsystems(x5):Highs:Mediums:Lows:Rigs:Charges and Drones