Exported FLevelLocals::ChangeLevel to ZScript

# Conflicts:
#	wadsrc/static/zscript/base.zs
This commit is contained in:
Player701 2020-09-20 22:46:01 +03:00 committed by drfrag
parent 86452ed684
commit ee3ef788a5
2 changed files with 12 additions and 0 deletions

View file

@ -698,6 +698,17 @@ void G_ChangeLevel(const char *levelname, int position, int flags, int nextSkill
}
}
DEFINE_ACTION_FUNCTION_NATIVE(FLevelLocals, ChangeLevel, G_ChangeLevel)
{
PARAM_SELF_STRUCT_PROLOGUE(FLevelLocals);
PARAM_STRING(levelname);
PARAM_INT(position);
PARAM_INT(inflags);
PARAM_INT(nextSkill);
G_ChangeLevel(levelname, position, inflags, nextSkill);
return 0;
}
//==========================================================================
//
//

View file

@ -788,6 +788,7 @@ struct LevelLocals native
native static void ExitLevel(int position, bool keepFacing);
native static void SecretExitLevel(int position);
native static void ChangeLevel(string levelname, int position = 0, int flags = 0, int skill = -1);
}
struct StringTable native