- scriptified P_BobWeapon as a virtual function on PlayerPawn.

This commit is contained in:
Christoph Oelckers 2018-11-25 00:23:03 +01:00
commit 34b7e5f435
6 changed files with 145 additions and 93 deletions

View file

@ -177,6 +177,11 @@ struct VMReturn
Location = loc;
RegType = REGT_FLOAT;
}
void Vec2At(DVector2 *loc)
{
Location = loc;
RegType = REGT_FLOAT | REGT_MULTIREG2;
}
void StringAt(FString *loc)
{
Location = loc;
@ -190,6 +195,7 @@ struct VMReturn
VMReturn() { }
VMReturn(int *loc) { IntAt(loc); }
VMReturn(double *loc) { FloatAt(loc); }
VMReturn(DVector2 *loc) { Vec2At(loc); }
VMReturn(FString *loc) { StringAt(loc); }
VMReturn(void **loc) { PointerAt(loc); }
};