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