Beispiel #1
0
 static int RegisterProxy(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         PureMVC.Patterns.Facade   obj  = (PureMVC.Patterns.Facade)ToLua.CheckObject <PureMVC.Patterns.Facade>(L, 1);
         PureMVC.Interfaces.IProxy arg0 = (PureMVC.Interfaces.IProxy)ToLua.CheckObject <PureMVC.Interfaces.IProxy>(L, 2);
         obj.RegisterProxy(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #2
0
 static int RemoveProxy(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         PureMVC.Patterns.Facade obj = (PureMVC.Patterns.Facade)ToLua.CheckObject <PureMVC.Patterns.Facade>(L, 1);
         string arg0 = ToLua.CheckString(L, 2);
         PureMVC.Interfaces.IProxy o = obj.RemoveProxy(arg0);
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }