using RichCreator.Utility; using RichCreator.Utility.Maps; using RichCreator.Utility.Structs; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace RichCreator.Dnf { /// /// 地图信息 /// public abstract class MapInfo { public MapInfo(MapType mapType, ZTRectangle gameRect, CancellationToken cancellationToken) { this.MapType = mapType; this.GameRect = gameRect; this.CancelToken = cancellationToken; } /// /// 游戏区域 /// public ZTRectangle GameRect { get; set; } /// /// 小地图 /// public IMiniMap MiniMap { get; set; } /// /// 取消令牌 /// public CancellationToken CancelToken { get; set; } /// /// 地图类型 /// public MapType MapType { get; set; } /// /// 开始刷图 /// /// public abstract ZTResult Start(Int32 runningStep); /// /// 是否已进入地图 /// /// public virtual bool IsEntryMap() { return true; } /// /// 进入每个房间后的前置工作 /// /// /// public virtual void EntryHousePrework(Int32 houseIndex, Int32 preHouseIndex) { } } }