コード例 #1
0
 static int SendConnect(IntPtr L)
 {
     LuaScriptMgr.CheckArgsCount(L, 1);
     SimpleFramework.Manager.NetworkManager obj = (SimpleFramework.Manager.NetworkManager)LuaScriptMgr.GetUnityObjectSelf(L, 1, "SimpleFramework.Manager.NetworkManager");
     obj.SendConnect();
     return(0);
 }
コード例 #2
0
 static int GetNetManager(IntPtr L)
 {
     LuaScriptMgr.CheckArgsCount(L, 0);
     SimpleFramework.Manager.NetworkManager o = SimpleFramework.LuaHelper.GetNetManager();
     LuaScriptMgr.Push(L, o);
     return(1);
 }
コード例 #3
0
 static int SendMessage(IntPtr L)
 {
     LuaScriptMgr.CheckArgsCount(L, 2);
     SimpleFramework.Manager.NetworkManager obj  = (SimpleFramework.Manager.NetworkManager)LuaScriptMgr.GetUnityObjectSelf(L, 1, "SimpleFramework.Manager.NetworkManager");
     SimpleFramework.ByteBuffer             arg0 = (SimpleFramework.ByteBuffer)LuaScriptMgr.GetNetObject(L, 2, typeof(SimpleFramework.ByteBuffer));
     obj.SendMessage(arg0);
     return(0);
 }
コード例 #4
0
    static int CallMethod(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

        SimpleFramework.Manager.NetworkManager obj = (SimpleFramework.Manager.NetworkManager)LuaScriptMgr.GetUnityObjectSelf(L, 1, "SimpleFramework.Manager.NetworkManager");
        string arg0 = LuaScriptMgr.GetLuaString(L, 2);

        object[] objs1 = LuaScriptMgr.GetParamsObject(L, 3, count - 2);
        object[] o     = obj.CallMethod(arg0, objs1);
        LuaScriptMgr.PushArray(L, o);
        return(1);
    }