private void ParseMapLeftRow(Internal.CommunicationStream message) { UnityEngine.Vector3Int position = WorldMapStorage.Position; position.x--; WorldMapStorage.Position = position; MiniMapStorage.Position = position; WorldMapStorage.ScrollMap(1, 0); WorldMapStorage.InvalidateOnscreenMessages(); ProtocolGameExtentions.ReadArea(message, 0, 0, 0, Constants.MapSizeY - 1); WorldMapStorage.CacheRefresh = true; }
private void ParseFullMap(Internal.CommunicationStream message) { UnityEngine.Vector3Int position = message.ReadPosition(); Player.StopAutowalk(true); CreatureStorage.MarkAllOpponentsVisible(false); MiniMapStorage.Position = position; WorldMapStorage.ResetMap(); WorldMapStorage.InvalidateOnscreenMessages(); WorldMapStorage.Position = position; ProtocolGameExtentions.ReadArea(message, 0, 0, Constants.MapSizeX - 1, Constants.MapSizeY - 1); WorldMapStorage.Valid = true; WorldMapStorage.CacheRefresh = true; }