コード例 #1
0
    static int _Createfogs_proto_msg_QualifyingNewInfo(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

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

        return(0);
    }
コード例 #2
0
    static int get_win_times(IntPtr L)
    {
        object o = LuaScriptMgr.GetLuaObject(L, 1);

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

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

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

        LuaScriptMgr.Push(L, obj.win_times);
        return(1);
    }
コード例 #3
0
    static int set_total_win_times(IntPtr L)
    {
        object o = LuaScriptMgr.GetLuaObject(L, 1);

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

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

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

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