- add 'FlipLine' to 'LevelPostProcessor'

This commit is contained in:
Rachael Alexanderson 2019-11-10 09:04:30 -05:00
parent 82c248854d
commit 1098a13fdb
2 changed files with 17 additions and 0 deletions

View File

@ -3660,6 +3660,22 @@ DEFINE_ACTION_FUNCTION(DLevelPostProcessor, SetVertex)
return 0;
}
DEFINE_ACTION_FUNCTION(DLevelPostProcessor, FlipLine)
{
PARAM_SELF_PROLOGUE(DLevelPostProcessor);
PARAM_UINT(lineidx);
line_t *line = &self->Level->lines[lineidx];
vertex_t *v1 = line->v1;
vertex_t *v2 = line->v2;
line->v1 = v2;
line->v2 = v1;
self->loader->ForceNodeBuild = true;
return 0;
}
DEFINE_ACTION_FUNCTION(DLevelPostProcessor, SetLineSectorRef)
{
PARAM_SELF_PROLOGUE(DLevelPostProcessor);

View File

@ -47,6 +47,7 @@ class LevelPostProcessor native play
protected native void SetThingStringArgument(uint thing, Name value);
protected native void SetVertex(uint vertex, double x, double y);
protected native void FlipLine(uint Line);
protected native void SetLineSectorRef(uint line, uint side, uint sector);
protected native Actor GetDefaultActor(Name actorclass);