openclonk/docs/sdk/script/fn/C4V_PropList.xml

22 lines
776 B
XML

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE funcs
SYSTEM '../../../clonk.dtd'>
<?xml-stylesheet type="text/xsl" href="../../../clonk.xsl"?>
<funcs>
<const>
<title>C4V_PropList</title>
<category>Variables</category>
<version>1.0 OC</version>
<syntax><rtype>int</rtype></syntax>
<desc>Data type: Proplist.</desc>
<examples>
<example>
<code><funclink>if</funclink> (<funclink>GetType</funclink>(x) == C4V_PropList) x.foo=bar;</code>
<text>Sets the property <code>"foo"</code> of <code>x</code> to <code>bar</code> if <code>x</code> is a proplist.</text>
</example>
</examples>
<related><funclink>GetType</funclink></related>
</const>
<author>Günther</author><date>2011-05</date>
</funcs>