- added scriptable virtual overrides for PostBeginPlay, Tick, BeginPlay, Activate and Deactivate.

This commit is contained in:
Christoph Oelckers 2016-11-21 14:59:17 +01:00
commit 97763b5a2b
6 changed files with 162 additions and 16 deletions

View file

@ -258,6 +258,14 @@ void DThinker::PostBeginPlay ()
{
}
DEFINE_ACTION_FUNCTION(DThinker, PostBeginPlay)
{
PARAM_SELF_PROLOGUE(DThinker);
self->VMSuperCall();
self->PostBeginPlay();
return 0;
}
void DThinker::PostSerialize()
{
}
@ -421,6 +429,14 @@ void DThinker::Tick ()
{
}
DEFINE_ACTION_FUNCTION(DThinker, Tick)
{
PARAM_SELF_PROLOGUE(DThinker);
self->VMSuperCall();
self->Tick();
return 0;
}
size_t DThinker::PropagateMark()
{
// Do not choke on partially initialized objects (as happens when loading a savegame fails)