mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
Gave static methods in EventHandler/StaticEventHandler clearscope
This commit is contained in:
parent
6af5c1fa2b
commit
a43bc279a3
1 changed files with 10 additions and 10 deletions
|
@ -283,12 +283,12 @@ class StaticEventHandler : Object native play
|
|||
{
|
||||
// static event handlers CAN register other static event handlers.
|
||||
// unlike EventHandler.Create that will not create them.
|
||||
protected static native StaticEventHandler Create(class<StaticEventHandler> type);
|
||||
protected static native StaticEventHandler CreateOnce(class<StaticEventHandler> type);
|
||||
protected static native StaticEventHandler Find(Class<StaticEventHandler> type); // just for convenience. who knows.
|
||||
clearscope protected static native StaticEventHandler Create(class<StaticEventHandler> type);
|
||||
clearscope protected static native StaticEventHandler CreateOnce(class<StaticEventHandler> type);
|
||||
clearscope protected static native StaticEventHandler Find(Class<StaticEventHandler> type); // just for convenience. who knows.
|
||||
|
||||
protected static native bool Register(StaticEventHandler handler);
|
||||
protected static native bool Unregister(StaticEventHandler handler);
|
||||
clearscope protected static native bool Register(StaticEventHandler handler);
|
||||
clearscope protected static native bool Unregister(StaticEventHandler handler);
|
||||
|
||||
// these are called when the handler gets registered or unregistered
|
||||
// you can set Order/IsUiProcessor here.
|
||||
|
@ -337,12 +337,12 @@ class StaticEventHandler : Object native play
|
|||
|
||||
class EventHandler : StaticEventHandler native
|
||||
{
|
||||
static native StaticEventHandler Create(class<StaticEventHandler> type);
|
||||
static native StaticEventHandler CreateOnce(class<StaticEventHandler> type);
|
||||
static native StaticEventHandler Find(class<StaticEventHandler> type);
|
||||
clearscope static native StaticEventHandler Create(class<StaticEventHandler> type);
|
||||
clearscope static native StaticEventHandler CreateOnce(class<StaticEventHandler> type);
|
||||
clearscope static native StaticEventHandler Find(class<StaticEventHandler> type);
|
||||
|
||||
static native bool Register(StaticEventHandler handler);
|
||||
static native bool Unregister(StaticEventHandler handler);
|
||||
clearscope static native bool Register(StaticEventHandler handler);
|
||||
clearscope static native bool Unregister(StaticEventHandler handler);
|
||||
|
||||
clearscope static native void SendNetworkEvent(String name, int arg1 = 0, int arg2 = 0, int arg3 = 0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue