Пример #1
0
        private void OnUpdateActData(Globals.ActType act, int mapId, int areaId)
        {
            _gameThread.GameData.CurrentAct = act;
            _gameThread.GameData.MapId      = mapId;
            _gameThread.GameData.AreaId     = areaId;

            if (!_gameThread.GameData.InGame)
            {
                _gameThread._startRun.Set();
                _gameThread.GameData.InGame = true;
            }
        }
Пример #2
0
        protected void LoadActData(byte type, List <byte> data)
        {
            byte[] packet = data.ToArray();

            Logger.Write("Loading Act Data");

            Globals.ActType currentAct = (Globals.ActType)data[1];
            Int32           mapId      = BitConverter.ToInt32(packet, 2);
            Int32           areaId     = BitConverter.ToInt32(packet, 6);

            UpdateActData?.Invoke(currentAct, mapId, areaId);

            /*
             * if (!_fullEntered)
             * {
             *  _fullEntered = true;
             *  Logger.Write("Fully Entered Game.");
             * }
             */
        }