예제 #1
0
    static int _Createfogs_proto_msg_ResetRoleResp(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

        if (count == 0)
        {
            fogs.proto.msg.ResetRoleResp obj = new fogs.proto.msg.ResetRoleResp();
            LuaScriptMgr.PushObject(L, obj);
            return(1);
        }
        else
        {
            LuaDLL.luaL_error(L, "invalid arguments to method: fogs.proto.msg.ResetRoleResp.New");
        }

        return(0);
    }
예제 #2
0
    static int get_resource(IntPtr L)
    {
        object o = LuaScriptMgr.GetLuaObject(L, 1);

        fogs.proto.msg.ResetRoleResp obj = (fogs.proto.msg.ResetRoleResp)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name resource");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index resource on a nil value");
            }
        }

        LuaScriptMgr.PushObject(L, obj.resource);
        return(1);
    }
예제 #3
0
    static int set_role(IntPtr L)
    {
        object o = LuaScriptMgr.GetLuaObject(L, 1);

        fogs.proto.msg.ResetRoleResp obj = (fogs.proto.msg.ResetRoleResp)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name role");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index role on a nil value");
            }
        }

        obj.role = (fogs.proto.msg.RoleInfo)LuaScriptMgr.GetNetObject(L, 3, typeof(fogs.proto.msg.RoleInfo));
        return(0);
    }
예제 #4
0
    static int set_result(IntPtr L)
    {
        object o = LuaScriptMgr.GetLuaObject(L, 1);

        fogs.proto.msg.ResetRoleResp obj = (fogs.proto.msg.ResetRoleResp)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name result");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index result on a nil value");
            }
        }

        obj.result = (uint)LuaScriptMgr.GetNumber(L, 3);
        return(0);
    }