Difference between revisions of "Module:DefInfo/doc"

From RimWorld Wiki
Jump to navigation Jump to search
m (category)
 
(10 intermediate revisions by one other user not shown)
Line 1: Line 1:
== Description ==
+
Dev version at [[Module:Test]]
This module is used to obtain information about certain game objects.
 
It uses data stored in the subpages of the module.
 
The data that is in those subpages is gathered from the game's XML Defs files.
 
 
 
== Usage ==
 
<code><nowiki>
 
{{#invoke:DefInfo|query|type|object|property}}
 
</nowiki></code>
 
 
 
; type
 
: For now, the only type that is available is: Races. More will be added.
 
 
 
; object
 
: If we're querying Races, then, an object is for example: Hare, Lynx, Lancer, etc.
 
 
 
; property
 
: MoveSpeed, description, baseBodySize, ...
 
 
 
== Examples ==
 
<code><nowiki>{{#invoke:DefInfo|query|Races|Hare|description}}</nowiki></code>
 
 
 
will return:
 
 
 
{{#invoke:DefInfo|query|Races|Hare|description}}
 
  
 +
<includeonly>[[Category:Module]]</includeonly>
 
<noinclude>[[Category:Module documentation]]</noinclude>
 
<noinclude>[[Category:Module documentation]]</noinclude>

Latest revision as of 22:57, 22 October 2022

Dev version at Module:Test