Ejemplo n.º 1
0
DEFINE_ACTION_FUNCTION(AAmmo, GetParentAmmo)
{
	PARAM_SELF_PROLOGUE(AAmmo);
	ACTION_RETURN_OBJECT(self->GetParentAmmo());
}
Ejemplo n.º 2
0
DEFINE_ACTION_FUNCTION(_PlayerInfo, GetPSprite)	// the underscore is needed to get past the name mangler which removes the first clas name character to match the class representation (needs to be fixed in a later commit)
{
	PARAM_SELF_STRUCT_PROLOGUE(player_t);
	PARAM_INT(id);
	ACTION_RETURN_OBJECT(self->GetPSprite((PSPLayers)id));
}
Ejemplo n.º 3
0
DEFINE_ACTION_FUNCTION(AActor, GetSpawnableType)
{
    PARAM_PROLOGUE;
    PARAM_INT(num);
    ACTION_RETURN_OBJECT(P_GetSpawnableType(num));
}