1 // Copyright (C) 2018 Kazuhiro Fujieda <fujieda@users.osdn.me>
\r
3 // Licensed under the Apache License, Version 2.0 (the "License");
\r
4 // you may not use this file except in compliance with the License.
\r
5 // You may obtain a copy of the License at
\r
7 // http://www.apache.org/licenses/LICENSE-2.0
\r
9 // Unless required by applicable law or agreed to in writing, software
\r
10 // distributed under the License is distributed on an "AS IS" BASIS,
\r
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
12 // See the License for the specific language governing permissions and
\r
13 // limitations under the License.
\r
17 namespace KancolleSniffer.Model
\r
19 public class ShipSpec
\r
21 public int Id { get; set; }
\r
22 public int SortId { get; set; }
\r
23 public string Name { get; set; }
\r
24 public int FuelMax { get; set; }
\r
25 public int BullMax { get; set; }
\r
26 public int SlotNum { get; set; }
\r
27 public Func<int[]> GetMaxEq { get; set; }
\r
28 public int[] MaxEq => GetMaxEq?.Invoke();
\r
29 public Func<int> GetNumEquips { get; set; }
\r
30 public Action<int> SetNumEquips { get; set; }
\r
32 public int NumEquips
\r
34 get => GetNumEquips();
\r
35 set => SetNumEquips(value);
\r
38 public int ShipType { get; set; }
\r
39 public int ShipClass { get; set; }
\r
40 public string ShipTypeName { get; set; }
\r
41 public RemodelInfo Remodel { get; } = new RemodelInfo();
\r
43 public class RemodelInfo
\r
45 public int Level { get; set; }
\r
46 public int After { get; set; }
\r
47 public int Base { get; set; } // 艦隊晒しページ用
\r
48 public int Step { get; set; } // 同上
\r
57 public double RepairWeight
\r
92 public double TransportPoint
\r
101 return Id == 487 ? 10.0 : 2.0; // 鬼怒改二は大発分を加算
\r
122 public bool IsSubmarine => ShipType == 13 || ShipType == 14;
\r
124 public bool IsAircraftCarrier => ShipType == 7 || ShipType == 11 || ShipType == 18;
\r
126 public bool IsAntiSubmarine
\r
149 public bool IsRepairShip => ShipType == 19;
\r
151 public bool IsTrainingCruiser => ShipType == 21;
\r