Difference between revisions of "Shipdata structure"

From Elite Wiki
m (added commentline)
m (added OpenStep)
(4 intermediate revisions by 4 users not shown)
Line 2: Line 2:
 
Do not use '-'(minus symbol) in the entity title.
 
Do not use '-'(minus symbol) in the entity title.
  
:The structure of the shipdata.plist is as follows:
+
The structure of the shipdata.plist is as follows:
  
 +
XML:
 
  ''***usual XML-Header info***''
 
  ''***usual XML-Header info***''
 
  <plist>
 
  <plist>
Line 11: Line 12:
 
     ''(all relevant property entries)''
 
     ''(all relevant property entries)''
 
   </dict>
 
   </dict>
  <nowiki>  <!-- between these everything will be ignored, conventient for selfcomments --> </nowiki>
+
  <nowiki>  <!-- between these everything will be ignored, convenient for selfcomments --> </nowiki>
 
   <key>my_second_object</key>
 
   <key>my_second_object</key>
 
   <dict>
 
   <dict>
Line 19: Line 20:
 
  </plist>
 
  </plist>
  
'''[[shipdata.plist|BACK]]'''
+
OpenStep:
 +
{
 +
    // comment
 +
    "my_object" = {
 +
      ''(all relevant property entries)''
 +
    };
 +
}
 +
 
 +
* See [[Shipdata.plist]] for relevant properties.
 +
 
 +
[[Category:Oolite]]

Revision as of 10:02, 21 March 2013

Every entity is defined by a title-key, followed by a <dict>ionary of the object's properties. Do not use '-'(minus symbol) in the entity title.

The structure of the shipdata.plist is as follows:

XML:

***usual XML-Header info***
<plist>
<dict>
  <key>my_object</key>
  <dict>
    (all relevant property entries)
  </dict>
  <!-- between these everything will be ignored, convenient for selfcomments --> 
  <key>my_second_object</key>
  <dict>
    (all relevant property entries)
  </dict>
</dict>
</plist>

OpenStep:

{
   // comment
   "my_object" = {
     (all relevant property entries)
   };
}