mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-25 13:31:37 +00:00
Exported FLevelLocals::ChangeLevel to ZScript
This commit is contained in:
parent
4374b8017e
commit
734b15e412
2 changed files with 12 additions and 0 deletions
|
@ -739,6 +739,17 @@ void FLevelLocals::ChangeLevel(const char *levelname, int position, int inflags,
|
|||
::nextlevel = nextlevel;
|
||||
}
|
||||
|
||||
DEFINE_ACTION_FUNCTION(FLevelLocals, ChangeLevel)
|
||||
{
|
||||
PARAM_SELF_STRUCT_PROLOGUE(FLevelLocals);
|
||||
PARAM_STRING(levelname);
|
||||
PARAM_INT(position);
|
||||
PARAM_INT(inflags);
|
||||
PARAM_INT(nextSkill);
|
||||
self->ChangeLevel(levelname, position, inflags, nextSkill);
|
||||
return 0;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
//
|
||||
|
|
|
@ -804,6 +804,7 @@ struct LevelLocals native
|
|||
|
||||
native void ExitLevel(int position, bool keepFacing);
|
||||
native void SecretExitLevel(int position);
|
||||
native void ChangeLevel(string levelname, int position = 0, int flags = 0, int skill = -1);
|
||||
}
|
||||
|
||||
struct StringTable native
|
||||
|
|
Loading…
Reference in a new issue