mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-27 14:22:13 +00:00
Forgot to add events.txt
This commit is contained in:
parent
4c082d968e
commit
f5c29ec3e2
1 changed files with 24 additions and 0 deletions
24
wadsrc/static/zscript/events.txt
Executable file
24
wadsrc/static/zscript/events.txt
Executable file
|
@ -0,0 +1,24 @@
|
||||||
|
class EventHandler : Object native
|
||||||
|
{
|
||||||
|
static native EventHandler Create(class<EventHandler> type);
|
||||||
|
static native EventHandler CreateOnce(class<EventHandler> type);
|
||||||
|
static native EventHandler Find(class<EventHandler> type);
|
||||||
|
|
||||||
|
static native bool Register(EventHandler handler);
|
||||||
|
static native bool Unregister(EventHandler handler);
|
||||||
|
|
||||||
|
virtual native void MapLoaded();
|
||||||
|
virtual native void MapUnloading();
|
||||||
|
|
||||||
|
virtual native void RenderFrame();
|
||||||
|
virtual native void RenderCamera();
|
||||||
|
}
|
||||||
|
|
||||||
|
class RenderEventHandler : EventHandler native
|
||||||
|
{
|
||||||
|
native readonly Vector3 ViewPos;
|
||||||
|
native readonly double ViewAngle;
|
||||||
|
native readonly double ViewPitch;
|
||||||
|
native readonly double ViewRoll;
|
||||||
|
native readonly double FracTic;
|
||||||
|
}
|
Loading…
Reference in a new issue