- added all missing things to enable the scriptified version of A_BrainSpit.

This uses a global function, this has been placed into DObject for now because the scripting interface does not allow non-class-owned functions yet.
This commit is contained in:
Christoph Oelckers 2016-11-18 22:12:53 +01:00
commit 7ff5069617
8 changed files with 68 additions and 89 deletions

View file

@ -388,6 +388,13 @@ int G_SkillProperty(ESkillProperty prop)
return 0;
}
DEFINE_ACTION_FUNCTION(DObject, G_SkillPropertyInt)
{
PARAM_PROLOGUE;
PARAM_INT(which);
ACTION_RETURN_INT(G_SkillProperty((ESkillProperty)which));
}
//==========================================================================
//
//
@ -433,6 +440,13 @@ double G_SkillProperty(EFSkillProperty prop)
return 0;
}
DEFINE_ACTION_FUNCTION(DObject, G_SkillPropertyFloat)
{
PARAM_PROLOGUE;
PARAM_INT(which);
ACTION_RETURN_FLOAT(G_SkillProperty((EFSkillProperty)which));
}
//==========================================================================