ClassName (Object function)

From m204wiki
Revision as of 19:17, 7 August 2014 by JAL (talk | contribs) (→‎Syntax terms)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Class name of object (Object class)

[Introduced in Sirius Mods 8.1]


This function returns the class name of the underlying object.

Syntax

%string = object:ClassName

Syntax terms

%string The class name of the object referenced by object.
object Object class object variable for which the class name is to be returned.

Usage notes

  • The class name returned is the class of the object variable assigned to the Object class object variable, not the outermost (highest level extension) class. For example, if a variable %foo is object foo is assigned to variable %obj is object object, %obj:classname would return Foo, even if the underlying object was of class Foobar which extended Foo.

Examples

The following displays the class of the object referenced by Object class variable %something:

... %something is object object ... printText {~=%something:className}

See also