2010-08-22 13:13:17 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
|
|
<!DOCTYPE funcs
|
|
|
|
SYSTEM '../../../clonk.dtd'>
|
2009-05-09 13:11:51 +00:00
|
|
|
<?xml-stylesheet type="text/xsl" href="../../../clonk.xsl"?>
|
|
|
|
<funcs>
|
|
|
|
<func>
|
|
|
|
<title>GetObjectVal</title>
|
|
|
|
<category>Get*Val</category>
|
2011-06-30 10:52:55 +00:00
|
|
|
<version>5.1 OC</version>
|
2009-05-09 13:11:51 +00:00
|
|
|
<syntax>
|
|
|
|
<rtype>any</rtype>
|
|
|
|
<params>
|
|
|
|
<param>
|
|
|
|
<type>string</type>
|
2010-03-15 22:55:14 +00:00
|
|
|
<name>entry</name>
|
2010-08-22 13:13:17 +00:00
|
|
|
<desc>Name of the entry to be retrieved.</desc>
|
2009-05-09 13:11:51 +00:00
|
|
|
</param>
|
|
|
|
<param>
|
|
|
|
<type>string</type>
|
2010-03-15 22:55:14 +00:00
|
|
|
<name>section</name>
|
2010-08-22 13:13:17 +00:00
|
|
|
<desc>Section of the entry to be retrieved. If 0, all sections will be searched for an entry of the specified name.</desc>
|
|
|
|
<optional />
|
2009-05-09 13:11:51 +00:00
|
|
|
</param>
|
|
|
|
<param>
|
|
|
|
<type>int</type>
|
2010-03-15 22:55:14 +00:00
|
|
|
<name>entry_number</name>
|
2010-08-22 13:13:17 +00:00
|
|
|
<desc>Index of the value to be retrieved if an entry contains multiple values.</desc>
|
|
|
|
<optional />
|
2009-05-09 13:11:51 +00:00
|
|
|
</param>
|
|
|
|
</params>
|
|
|
|
</syntax>
|
2010-08-22 13:13:17 +00:00
|
|
|
<desc>Returns the property value of an object by its name in the Objects.txt.</desc>
|
2011-06-25 13:31:29 +00:00
|
|
|
<remark>Most useful applications for entry are already implemented in System.ocg/GetXVal.c.</remark>
|
2009-05-09 13:11:51 +00:00
|
|
|
<examples>
|
|
|
|
<example>
|
2010-08-22 13:13:17 +00:00
|
|
|
<text>see <funclink>GetDefCoreVal</funclink></text>
|
2009-05-09 13:11:51 +00:00
|
|
|
</example>
|
|
|
|
</examples>
|
|
|
|
<related>
|
|
|
|
<funclink>GetDefCoreVal</funclink>
|
|
|
|
<funclink>GetObjectInfoCoreVal</funclink>
|
|
|
|
<funclink>GetActMapVal</funclink>
|
|
|
|
<funclink>GetScenarioVal</funclink>
|
|
|
|
<funclink>GetPlayerVal</funclink>
|
|
|
|
<funclink>GetPlayerInfoCoreVal</funclink>
|
|
|
|
</related>
|
|
|
|
</func>
|
2010-08-22 13:13:17 +00:00
|
|
|
<author>PeterW</author><date>2002-04</date>
|
2009-05-09 13:11:51 +00:00
|
|
|
</funcs>
|