Example #1
0
    public static int PBArenaOpponentToArenaOpponent_s(IntPtr l)
    {
        int result;

        try
        {
            ProArenaOpponent pbArenaOpponent;
            LuaObject.checkType <ProArenaOpponent>(l, 1, out pbArenaOpponent);
            ArenaOpponent o = ArenaOpponent.PBArenaOpponentToArenaOpponent(pbArenaOpponent);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #2
0
        // Token: 0x06006C2C RID: 27692 RVA: 0x001E5098 File Offset: 0x001E3298
        public void FlushOpponents(List <ProArenaOpponent> pbOpponents, long nextFlushTime)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_FlushOpponentsList ` 1Int64_hotfix != null)
            {
                this.m_FlushOpponentsList ` 1Int64_hotfix.call(new object[]
                {
                    this,
                    pbOpponents,
                    nextFlushTime
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            List <ArenaOpponent> list = new List <ArenaOpponent>();

            foreach (ProArenaOpponent pbArenaOpponent in pbOpponents)
            {
                list.Add(ArenaOpponent.PBArenaOpponentToArenaOpponent(pbArenaOpponent));
            }
            this.m_arenaDS.SetOpponents(list);
            this.m_arenaDS.ArenaPlayerInfo.NextFlushOpponentTime = nextFlushTime;
        }