Skip to content

Commit 3333d48

Browse files
committed
11/18 アップデート対応
1 parent 6af1d74 commit 3333d48

File tree

8 files changed

+16
-318
lines changed

8 files changed

+16
-318
lines changed

source/Grabacr07.KanColleViewer/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
ResourceDictionaryLocation.None,
1616
ResourceDictionaryLocation.SourceAssembly)]
1717

18-
[assembly: AssemblyVersion("4.2.8.0")]
18+
[assembly: AssemblyVersion("4.2.9.0")]

source/Grabacr07.KanColleWrapper/Master.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ public class Master
5656
/// <summary>
5757
/// すべてのセルの定義を取得します。
5858
/// </summary>
59-
public MasterTable<MapCell> MapCells { get; }
59+
[Obsolete("マスター データから削除されました。")]
60+
public MasterTable<MapCell> MapCells { get; } = new MasterTable<MapCell>();
6061

6162

6263
internal Master(kcsapi_start2 start2)
@@ -67,8 +68,7 @@ internal Master(kcsapi_start2 start2)
6768
this.SlotItems = new MasterTable<SlotItemInfo>(start2.api_mst_slotitem.Select(x => new SlotItemInfo(x, this.SlotItemEquipTypes)));
6869
this.UseItems = new MasterTable<UseItemInfo>(start2.api_mst_useitem.Select(x => new UseItemInfo(x)));
6970
this.Missions = new MasterTable<Mission>(start2.api_mst_mission.Select(x => new Mission(x)));
70-
this.MapCells = new MasterTable<MapCell>(start2.api_mst_mapcell.Select(x => new MapCell(x)));
71-
this.MapInfos = new MasterTable<MapInfo>(start2.api_mst_mapinfo.Select(x => new MapInfo(x, this.MapCells)));
71+
this.MapInfos = new MasterTable<MapInfo>(start2.api_mst_mapinfo.Select(x => new MapInfo(x)));
7272
this.MapAreas = new MasterTable<MapArea>(start2.api_mst_maparea.Select(x => new MapArea(x, this.MapInfos)));
7373
}
7474
}

source/Grabacr07.KanColleWrapper/Models/MapInfo.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ public class MapInfo : RawDataWrapper<kcsapi_mst_mapinfo>, IIdentifiable
2626

2727
public int RequiredDefeatCount { get; }
2828

29-
public MasterTable<MapCell> MapCells { get; }
30-
31-
public MapInfo(kcsapi_mst_mapinfo mapinfo, MasterTable<MapCell> mapCells)
29+
public MapInfo(kcsapi_mst_mapinfo mapinfo)
3230
: base(mapinfo)
3331
{
3432
this.Id = mapinfo.api_id;
@@ -39,9 +37,6 @@ public MapInfo(kcsapi_mst_mapinfo mapinfo, MasterTable<MapCell> mapCells)
3937
this.OperationName = mapinfo.api_opetext;
4038
this.OperationSummary = mapinfo.api_infotext;
4139
this.RequiredDefeatCount = mapinfo.api_required_defeat_count ?? 1;
42-
this.MapCells = new MasterTable<MapCell>(mapCells.Values.Where(x => x.MapInfoId == mapinfo.api_id));
43-
foreach (var cell in this.MapCells.Values)
44-
cell.MapInfo = this;
4540
}
4641

4742
public override string ToString()
@@ -58,7 +53,7 @@ public override string ToString()
5853
api_maparea_id = 0,
5954
api_no = 0,
6055
api_level = 0,
61-
}, new MasterTable<MapCell>())
56+
})
6257
{
6358
MapArea = MapArea.Dummy,
6459
};

source/Grabacr07.KanColleWrapper/Models/Raw/kcsapi_mst_maparea.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,14 @@
55

66
namespace Grabacr07.KanColleWrapper.Models.Raw
77
{
8+
// ReSharper disable InconsistentNaming
9+
810
public class kcsapi_mst_maparea
911
{
1012
public int api_id { get; set; }
1113
public string api_name { get; set; }
1214
public int api_type { get; set; }
1315
}
16+
17+
// ReSharper restore InconsistentNaming
1418
}

source/Grabacr07.KanColleWrapper/Models/Raw/kcsapi_mst_mapinfo.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
namespace Grabacr07.KanColleWrapper.Models.Raw
77
{
8+
// ReSharper disable InconsistentNaming
89
public class kcsapi_mst_mapinfo
910
{
1011
public int api_id { get; set; }
@@ -19,4 +20,5 @@ public class kcsapi_mst_mapinfo
1920
public int? api_required_defeat_count { get; set; }
2021
public int[] api_sally_flag { get; set; }
2122
}
23+
// ReSharper restore InconsistentNaming
2224
}

source/Grabacr07.KanColleWrapper/Models/Raw/kcsapi_mst_slotitem.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ public class kcsapi_mst_slotitem
3535
public int[] api_broken { get; set; }
3636
public string api_info { get; set; }
3737
public string api_usebull { get; set; }
38+
public int api_cost { get; set; }
39+
public int api_distance { get; set; }
3840
}
3941
// ReSharper restore InconsistentNaming
4042
}

0 commit comments

Comments
 (0)