mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-11 04:51:13 +00:00
Exported FLevelLocals::ChangeLevel to ZScript
# Conflicts: # wadsrc/static/zscript/base.zs
This commit is contained in:
parent
86452ed684
commit
ee3ef788a5
2 changed files with 12 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
//
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue