コード例 #1
0
 static public int constructor(IntPtr l)
 {
     try {
         UEventDispatcher o;
         o = new UEventDispatcher();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #2
0
ファイル: Lua_UEventDispatcher.cs プロジェクト: NickYang/uLui
 public static int constructor(IntPtr l)
 {
     try {
         UEventDispatcher o;
         o=new UEventDispatcher();
         pushValue(l,true);
         pushValue(l,o);
         return 2;
     }
     catch(Exception e) {
         return error(l,e);
     }
 }
コード例 #3
0
 static public int hasListener(IntPtr l)
 {
     try {
         UEventDispatcher self = (UEventDispatcher)checkSelf(l);
         System.String    a1;
         checkType(l, 2, out a1);
         var ret = self.hasListener(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #4
0
 static public int dispatchEvent(IntPtr l)
 {
     try {
         UEventDispatcher self = (UEventDispatcher)checkSelf(l);
         UEvent           a1;
         checkType(l, 2, out a1);
         System.Object a2;
         checkType(l, 3, out a2);
         self.dispatchEvent(a1, a2);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #5
0
 static public int removeEventListener(IntPtr l)
 {
     try {
         UEventDispatcher self = (UEventDispatcher)checkSelf(l);
         System.String    a1;
         checkType(l, 2, out a1);
         UEventListener.EventListenerDelegate a2;
         LuaDelegation.checkDelegate(l, 3, out a2);
         self.removeEventListener(a1, a2);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #6
0
 //  Unity Methods   -------------------------------
 protected void OnEnable()
 {
     _uEventDispatcher = new UEvents.UEventDispatcher.UEventDispatcher();
 }