static int set_instance(IntPtr L)
 {
     try
     {
         sFramework.sNetworkInterface arg0 = (sFramework.sNetworkInterface)ToLua.CheckUnityObject(L, 2, typeof(sFramework.sNetworkInterface));
         sFramework.sNetworkInterface.instance = arg0;
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int getAvatarList(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         sFramework.sNetworkInterface obj = (sFramework.sNetworkInterface)ToLua.CheckObject(L, 1, typeof(sFramework.sNetworkInterface));
         System.Collections.Generic.Dictionary <ulong, sAvatarList> o = obj.getAvatarList();
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int sendMsg2Server(IntPtr L)
 {
     try
     {
         int count = LuaDLL.lua_gettop(L);
         sFramework.sNetworkInterface obj = (sFramework.sNetworkInterface)ToLua.CheckObject(L, 1, typeof(sFramework.sNetworkInterface));
         string   arg0 = ToLua.CheckString(L, 2);
         object[] arg1 = ToLua.ToParamsObject(L, 3, count - 2);
         obj.sendMsg2Server(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int selAvatar(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 4);
         sFramework.sNetworkInterface obj = (sFramework.sNetworkInterface)ToLua.CheckObject(L, 1, typeof(sFramework.sNetworkInterface));
         ulong  arg0 = (ulong)LuaDLL.luaL_checknumber(L, 2);
         string arg1 = ToLua.CheckString(L, 3);
         string arg2 = ToLua.CheckString(L, 4);
         obj.selAvatar(arg0, arg1, arg2);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int set_selAvatarDBID(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            sFramework.sNetworkInterface obj = (sFramework.sNetworkInterface)o;
            ulong arg0 = (ulong)LuaDLL.luaL_checknumber(L, 2);
            obj.selAvatarDBID = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index selAvatarDBID on a nil value" : e.Message));
        }
    }
    static int get_selAvatarDBID(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            sFramework.sNetworkInterface obj = (sFramework.sNetworkInterface)o;
            ulong ret = obj.selAvatarDBID;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index selAvatarDBID on a nil value" : e.Message));
        }
    }
 static int login(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 5);
         sFramework.sNetworkInterface obj = (sFramework.sNetworkInterface)ToLua.CheckObject(L, 1, typeof(sFramework.sNetworkInterface));
         string arg0 = ToLua.CheckString(L, 2);
         string arg1 = ToLua.CheckString(L, 3);
         string arg2 = ToLua.CheckString(L, 4);
         string arg3 = ToLua.CheckString(L, 5);
         obj.login(arg0, arg1, arg2, arg3);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemple #8
0
 void Awake()
 {
     instance = this;
 }