Пример #1
0
 static int Close(IntPtr L)
 {
     LuaScriptMgr.CheckArgsCount(L, 1);
     SimpleFramework.ByteBuffer obj = (SimpleFramework.ByteBuffer)LuaScriptMgr.GetNetObjectSelf(L, 1, "SimpleFramework.ByteBuffer");
     obj.Close();
     return(0);
 }
Пример #2
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);
 }
Пример #3
0
 static int ToBytes(IntPtr L)
 {
     LuaScriptMgr.CheckArgsCount(L, 1);
     SimpleFramework.ByteBuffer obj = (SimpleFramework.ByteBuffer)LuaScriptMgr.GetNetObjectSelf(L, 1, "SimpleFramework.ByteBuffer");
     byte[] o = obj.ToBytes();
     LuaScriptMgr.PushArray(L, o);
     return(1);
 }
Пример #4
0
 static int WriteBytes(IntPtr L)
 {
     LuaScriptMgr.CheckArgsCount(L, 2);
     SimpleFramework.ByteBuffer obj = (SimpleFramework.ByteBuffer)LuaScriptMgr.GetNetObjectSelf(L, 1, "SimpleFramework.ByteBuffer");
     byte[] objs0 = LuaScriptMgr.GetArrayNumber <byte>(L, 2);
     obj.WriteBytes(objs0);
     return(0);
 }
Пример #5
0
    static int AddEvent(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        int arg0 = (int)LuaScriptMgr.GetNumber(L, 1);

        SimpleFramework.ByteBuffer arg1 = (SimpleFramework.ByteBuffer)LuaScriptMgr.GetNetObject(L, 2, typeof(SimpleFramework.ByteBuffer));
        SimpleFramework.Manager.NetworkManager.AddEvent(arg0, arg1);
        return(0);
    }
Пример #6
0
    static int WriteInt(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        SimpleFramework.ByteBuffer obj = (SimpleFramework.ByteBuffer)LuaScriptMgr.GetNetObjectSelf(L, 1, "SimpleFramework.ByteBuffer");
        int arg0 = (int)LuaScriptMgr.GetNumber(L, 2);

        obj.WriteInt(arg0);
        return(0);
    }
Пример #7
0
    static int ReadBuffer(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        SimpleFramework.ByteBuffer obj = (SimpleFramework.ByteBuffer)LuaScriptMgr.GetNetObjectSelf(L, 1, "SimpleFramework.ByteBuffer");
        LuaStringBuffer            o   = obj.ReadBuffer();

        LuaScriptMgr.Push(L, o);
        return(1);
    }
Пример #8
0
    static int WriteBuffer(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        SimpleFramework.ByteBuffer obj  = (SimpleFramework.ByteBuffer)LuaScriptMgr.GetNetObjectSelf(L, 1, "SimpleFramework.ByteBuffer");
        LuaStringBuffer            arg0 = LuaScriptMgr.GetStringBuffer(L, 2);

        obj.WriteBuffer(arg0);
        return(0);
    }
	static int _CreateSimpleFramework_ByteBuffer(IntPtr L)
	{
		int count = LuaDLL.lua_gettop(L);

		if (count == 0)
		{
			SimpleFramework.ByteBuffer obj = new SimpleFramework.ByteBuffer();
			LuaScriptMgr.PushObject(L, obj);
			return 1;
		}
		else if (count == 1)
		{
			byte[] objs0 = LuaScriptMgr.GetArrayNumber<byte>(L, 1);
			SimpleFramework.ByteBuffer obj = new SimpleFramework.ByteBuffer(objs0);
			LuaScriptMgr.PushObject(L, obj);
			return 1;
		}
		else
		{
			LuaDLL.luaL_error(L, "invalid arguments to method: SimpleFramework.ByteBuffer.New");
		}

		return 0;
	}
Пример #10
0
    static int _CreateSimpleFramework_ByteBuffer(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

        if (count == 0)
        {
            SimpleFramework.ByteBuffer obj = new SimpleFramework.ByteBuffer();
            LuaScriptMgr.PushObject(L, obj);
            return(1);
        }
        else if (count == 1)
        {
            byte[] objs0 = LuaScriptMgr.GetArrayNumber <byte>(L, 1);
            SimpleFramework.ByteBuffer obj = new SimpleFramework.ByteBuffer(objs0);
            LuaScriptMgr.PushObject(L, obj);
            return(1);
        }
        else
        {
            LuaDLL.luaL_error(L, "invalid arguments to method: SimpleFramework.ByteBuffer.New");
        }

        return(0);
    }