From 2aadd1e13c0e469c553fe42431b9fcee4aa27299 Mon Sep 17 00:00:00 2001 From: ZZYZX Date: Sun, 22 Jan 2017 04:15:30 +0200 Subject: [PATCH] Forgot to add events.txt --- wadsrc/static/zscript/events.txt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 wadsrc/static/zscript/events.txt diff --git a/wadsrc/static/zscript/events.txt b/wadsrc/static/zscript/events.txt new file mode 100755 index 000000000..080dfe3cf --- /dev/null +++ b/wadsrc/static/zscript/events.txt @@ -0,0 +1,24 @@ +class EventHandler : Object native +{ + static native EventHandler Create(class type); + static native EventHandler CreateOnce(class type); + static native EventHandler Find(class 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; +} \ No newline at end of file