forked from Mirrors/openclonk
docs: removed obsolote Components entry and add IsEditor function
parent
18dce041e1
commit
f9e7a983f2
|
@ -60,11 +60,6 @@
|
|||
<col>Integer</col>
|
||||
<col>Weight of the object. Rock 10, clonk 50, hut 1000, castle 10000.</col>
|
||||
</row>
|
||||
<row>
|
||||
<literal_col>Components</literal_col>
|
||||
<col>ID list</col>
|
||||
<col>Elements from which the object is composed. Uncompleted or half grown objects will only have the respective fraction of the components.</col>
|
||||
</row>
|
||||
<row>
|
||||
<literal_col>SolidMask</literal_col>
|
||||
<col>6 integers</col>
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<!DOCTYPE funcs
|
||||
SYSTEM '../../../clonk.dtd'>
|
||||
<?xml-stylesheet type="text/xsl" href="../../../clonk.xsl"?>
|
||||
<funcs>
|
||||
<func>
|
||||
<title>IsEditor</title>
|
||||
<category>Global</category>
|
||||
<version>8.0 OC</version>
|
||||
<syntax><rtype>bool</rtype></syntax>
|
||||
<desc>Returns whether the current game is an editor game.</desc>
|
||||
<examples>
|
||||
<example>
|
||||
<code>public func InitializePlayer(int plr)
|
||||
{
|
||||
if (IsEditor())
|
||||
<funclink>SetWealth</funclink>funclink>(plr, 10**4);
|
||||
}</code>
|
||||
<text>Gives the player a lot of wealth for testing purposes in editor mode.</text>
|
||||
</example>
|
||||
</examples>
|
||||
</func>
|
||||
<author>Maikel</author><date>2018-02</date>
|
||||
</funcs>
|
Loading…
Reference in New Issue