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

37 lines
1.2 KiB
XML

<?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>_inherited</title>
<category>Script</category>
<version>5.1 OC</version>
<syntax>
<rtype>any</rtype>
<params>
<param>
<type>any</type>
<name>...</name>
<desc>Calling Parameters</desc>
</param>
</params>
</syntax>
<desc>Calls the overloaded function. A function will overload another function if it is declared in the same scope with the same name. As opposed to <funclink>inherited</funclink>, this method is also failsafe, meaning it will not cause an error if the original function doesn't really exist.</desc>
<examples>
<example>
<code>#appendto Clonk
func Initialize()
{
<funclink>CreateContents</funclink>(Firestone);
<funclink>return</funclink> _inherited(...);
}</code>
<text>Gives a flintstone to each clonk.</text>
</example>
</examples>
<related><funclink>inherited</funclink></related>
</func>
<author>Sven2</author><date>2001-11</date>
</funcs>