Category: Objects
Since engine version: 1.0 OC
GetName
Description
Returns the name of a proplist. This is either the contents of the
Name
property, or if that doesn't exist or the true name was requested, the name of the constant in which it was defined.Syntax
string GetName(bool truename);
Parameter
- truename:
- Returns only the constant in which it was defined, ignoring the
Name
property.
Example
static const Bee = { Buzz = func() {} }; func Poke(proplist animal) { if (animal->GetName(true) == "Bee") animal->Buzz(); }