Exemplo n.º 1
0
 static public int GetOptionConfig(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (argc == 1)
         {
             LocalConfigSystem self = (LocalConfigSystem)checkSelf(l);
             var ret = self.GetOptionConfig();
             pushValue(l, true);
             pushValue(l, ret);
             return(2);
         }
         else if (argc == 2)
         {
             LocalConfigSystem self = (LocalConfigSystem)checkSelf(l);
             System.String     a1;
             checkType(l, 2, out a1);
             var ret = self.GetOptionConfig(a1);
             pushValue(l, true);
             pushValue(l, ret);
             return(2);
         }
         pushValue(l, false);
         LuaDLL.lua_pushstring(l, "No matched override function to call");
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemplo n.º 2
0
 static public int Uninitialize(IntPtr l)
 {
     try {
         LocalConfigSystem self = (LocalConfigSystem)checkSelf(l);
         self.Uninitialize();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemplo n.º 3
0
 static public int constructor(IntPtr l)
 {
     try {
         LocalConfigSystem o;
         o = new LocalConfigSystem();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemplo n.º 4
0
 static public int UpdateCurAccount(IntPtr l)
 {
     try {
         LocalConfigSystem self = (LocalConfigSystem)checkSelf(l);
         System.String     a1;
         checkType(l, 2, out a1);
         self.UpdateCurAccount(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }