File: Call.xml

package info (click to toggle)
openclonk 8.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 169,656 kB
  • sloc: cpp: 180,484; ansic: 108,988; xml: 31,371; python: 1,223; php: 767; makefile: 148; sh: 101; javascript: 34
file content (34 lines) | stat: -rw-r--r-- 1,311 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?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>Call</title>
    <category>Script</category>
    <subcat>Function call</subcat>
    <version>5.1 OC<extversion>5.4 OC</extversion></version>
    <syntax>
      <rtype>any</rtype>
      <params>
        <param>
          <type>string or function</type>
          <name>function</name>
          <desc>Function to be called.</desc>
        </param>
        <param>
          <type>any</type>
          <name>...</name>
          <desc>Parameters of the function.</desc>
        </param>
      </params>
    </syntax>
    <desc>Calls the specified function. If given a string, the function is looked up in the context object (<code>this</code>). For example, <code>obj->Call("Foo")</code> is the same as <code>obj->Foo()</code>. Using Call like this is primarily useful when the name of the function can vary. If "~" is prepended to the function name then the call does not fail if the function does not exist.</desc>
    <related>
      <funclink>GameCall</funclink>
      <funclink>eval</funclink>
    </related>
  </func>
  <author>jwk</author><date>2002-04</date>
  <author>Günther</author><date>2012</date>
</funcs>