public Floor(FloorTypeData data) : base(data) { }
internal bool RemoveFloorRes(FloorTypeData floorTypeData) { foreach (var item in FloorTypeList) { if (item == floorTypeData) { try { File.Delete(item.Path); } catch (Exception e) { DialogManager.ShowMessageAsync(MapEditor.GetInstance(), "删除文件错误", e.Message); } FloorTypeList.Remove(item); NeedSave = true; return true; } } return false; }