File: MaterialName.xml

package info (click to toggle)
openclonk 7.0-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 145,828 kB
  • ctags: 33,094
  • sloc: cpp: 163,891; ansic: 82,846; xml: 29,876; python: 1,203; php: 767; makefile: 138; sh: 77
file content (34 lines) | stat: -rwxr-xr-x 1,201 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>MaterialName</title>
    <category>Landscape</category>
    <subcat>Material</subcat>
    <version>5.1 OC</version>
    <syntax>
      <rtype>string</rtype>
      <params>
        <param>
          <type>int</type>
          <name>material_index</name>
          <desc>Index of the material of which you want to know the name.</desc>
        </param>
      </params>
    </syntax>
    <desc>Returns the internal (technical) name of a material.</desc>
    <examples>
      <example>
        <code><funclink>GetCursor</funclink>(0)-&gt;<funclink>Message</funclink>(&quot;You clonk is standing on %s.&quot;, MaterialName(<funclink>GetCursor</funclink>(0)-&gt;<funclink>GetMaterial</funclink>(0, 12)));</code>
        <text>Displays on what type of material the first player's selected clonk is standing.</text>
      </example>
    </examples>
    <related>
      <funclink>Material</funclink>
      <funclink>GetMaterial</funclink>
    </related>
  </func>
  <author>Sven2</author><date>2001-11</date>
</funcs>