mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-18 02:01:18 +00:00
- extended level post-processing with thing IDs
This commit is contained in:
parent
098b1c5973
commit
00ff4083d2
2 changed files with 26 additions and 0 deletions
|
@ -3599,6 +3599,29 @@ DEFINE_ACTION_FUNCTION(DLevelPostProcessor, SetThingArgument)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DEFINE_ACTION_FUNCTION(DLevelPostProcessor, GetThingID)
|
||||||
|
{
|
||||||
|
PARAM_SELF_PROLOGUE(DLevelPostProcessor);
|
||||||
|
PARAM_UINT(thing);
|
||||||
|
|
||||||
|
const int id = thing < self->loader->MapThingsConverted.Size()
|
||||||
|
? self->loader->MapThingsConverted[thing].thingid : 0;
|
||||||
|
ACTION_RETURN_INT(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
DEFINE_ACTION_FUNCTION(DLevelPostProcessor, SetThingID)
|
||||||
|
{
|
||||||
|
PARAM_SELF_PROLOGUE(DLevelPostProcessor);
|
||||||
|
PARAM_UINT(thing);
|
||||||
|
PARAM_INT(id);
|
||||||
|
|
||||||
|
if (thing < self->loader->MapThingsConverted.Size())
|
||||||
|
{
|
||||||
|
self->loader->MapThingsConverted[thing].thingid = id;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
DEFINE_ACTION_FUNCTION(DLevelPostProcessor, SetVertex)
|
DEFINE_ACTION_FUNCTION(DLevelPostProcessor, SetVertex)
|
||||||
{
|
{
|
||||||
PARAM_SELF_PROLOGUE(DLevelPostProcessor);
|
PARAM_SELF_PROLOGUE(DLevelPostProcessor);
|
||||||
|
|
|
@ -35,6 +35,9 @@ class LevelPostProcessor native play
|
||||||
protected native uint GetThingFlags(uint thing);
|
protected native uint GetThingFlags(uint thing);
|
||||||
protected native void SetThingFlags(uint thing, uint flags);
|
protected native void SetThingFlags(uint thing, uint flags);
|
||||||
|
|
||||||
|
protected native int GetThingID(uint thing);
|
||||||
|
protected native void SetThingID(uint thing, int id);
|
||||||
|
|
||||||
protected native int GetThingSpecial(uint thing);
|
protected native int GetThingSpecial(uint thing);
|
||||||
protected native void SetThingSpecial(uint thing, int special);
|
protected native void SetThingSpecial(uint thing, int special);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue