mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- added GetClassName script function.
This commit is contained in:
parent
2478cd0467
commit
8708c69f83
2 changed files with 8 additions and 0 deletions
|
@ -552,3 +552,9 @@ void DObject::CheckIfSerialized () const
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
DEFINE_ACTION_FUNCTION(DObject, GetClassName)
|
||||||
|
{
|
||||||
|
PARAM_SELF_PROLOGUE(DObject);
|
||||||
|
ACTION_RETURN_INT(self->GetClass()->TypeName);
|
||||||
|
}
|
|
@ -13,6 +13,8 @@ class Object native
|
||||||
native static void C_MidPrint(string fontname, string textlabel, bool bold = false); // always uses the stringtable.
|
native static void C_MidPrint(string fontname, string textlabel, bool bold = false); // always uses the stringtable.
|
||||||
native static uint BAM(double angle);
|
native static uint BAM(double angle);
|
||||||
|
|
||||||
|
native Name GetClassName();
|
||||||
|
|
||||||
/*virtual*/ native void Destroy();
|
/*virtual*/ native void Destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue