BattleNet.GameServer.LoadActData C# (CSharp) Method

LoadActData() protected method

protected LoadActData ( byte type, List data ) : void
type byte
data List
return void
        protected void LoadActData(byte type, List<byte> data)
        {
            byte[] packet = data.ToArray();
            if (ClientlessBot.debugging)
                Console.WriteLine("{0}: [D2GS] Loading Act Data", m_owner.Account);
            m_owner.BotGameData.CurrentAct = (GameData.ActType)data[1];
            m_owner.BotGameData.MapId = BitConverter.ToInt32(packet, 2);
            m_owner.BotGameData.AreaId = BitConverter.ToInt32(packet, 6);
            if (!m_owner.BotGameData.FullyEnteredGame)
            {
                m_owner.BotGameData.FullyEnteredGame = true;
                if (ClientlessBot.debugging)
                    Console.WriteLine("{0}: [D2GS] Fully Entered Game.", m_owner.Account);
            }
        }