User Tools

Site Tools


script:module:defs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
script:module:defs [2019-11-17 17:55]
skyjake [Order]
script:module:defs [2020-12-06 21:25] (current)
skyjake
Line 47: Line 47:
  
  
-The ''​order''​ variable contains a regular array where the definitions are stored in the order they were read from the [[:DED]] files. The order is meaningful because generally later definitions override earlier ones. The indices in this list are also available in the definition records as ''​__order__''​.+The ''​order''​ variable contains a regular array where the definitions are stored in the order they were read from the [[:DED]] files. The order is meaningful because generally later definitions override earlier ones. The indices in this list are also available in the definition records as ''​<​nowiki>​__order__</​nowiki>​''​.
  
  
Line 60: Line 60:
  
  
-The ''​Defs.SN_*''​ constants are used as indices in the ''​states''​ array of thing definitions.+The ''​Defs.SN_*''​ constants are used as indices in the ''​states''​ array of [[ded:thing|Thing ​definitions]].
  
-The ''​Defs.SDN_*''​ constants are used as indices in the ''​sounds''​ array of thing definitions.+The ''​Defs.SDN_*''​ constants are used as indices in the ''​sounds''​ array of [[ded:thing|Thing ​definitions]].
  
  
  
 +===== Functions =====
 +
 +The following return the internal index number for a given ID:
 +
 +#​@Identifier_HTML~getSoundNum~@#​ ( #​@Arg_HTML~Text,​name~@#​ )
 +
 +#​@Identifier_HTML~getStateNum~@#​ ( #​@Arg_HTML~Text,​stateId~@#​ )
 +
 +#​@Identifier_HTML~getThingNum~@#​ ( #​@Arg_HTML~Text,​thingId~@#​ )
  
script/module/defs.1574006151.txt.gz ยท Last modified: 2019-11-17 17:55 by skyjake