public static CellType GetCellType(this map_start_next data)
{
var type = data.api_event_id.ToCellType();
if (data.api_event_kind == 2)
{
if (data.api_event_id == 6)
{
type = CellType.能動分岐;
}
else
{
type |= CellType.夜戦;
}
}
else if (data.api_event_kind == 4)
{
type = CellType.航空戦;
}
else if (data.api_event_kind == 6)
{
type |= CellType.空襲戦;
}
else if (data.api_event_id == 7 && data.api_event_kind == 0)
{
type = CellType.航空偵察;
}
return type;
}