internal SortieConsumptionRecord(SQLiteDataReader rpReader) : base(rpReader) { ID = rpReader.GetInt64("id"); var rMapMaxHP = rpReader.GetInt32Optional("map_max_hp"); if (rMapMaxHP.HasValue) { var rMapHP = rpReader.GetInt32Optional("map_hp"); if (rMapHP.HasValue) MapHP = new ClampedValue(rMapMaxHP.Value, rMapHP.Value); } Fuel = rpReader.GetInt32("fuel"); Bullet = rpReader.GetInt32("bullet"); Steel = rpReader.GetInt32("steel"); Bauxite = rpReader.GetInt32("bauxite"); Bucket = rpReader.GetInt32("bucket"); RankingPoint = rpReader.GetDoubleOptional("ranking_point"); }
public SortieRecordBase(SQLiteDataReader rpReader) { var rMapID = rpReader.GetInt32("map"); Map = MapService.Instance.GetMasterInfo(rMapID); var rEventMapDifficulty = rpReader.GetInt32Optional("difficulty"); if (rEventMapDifficulty.HasValue) { IsEventMap = true; EventMapDifficulty = (EventMapDifficulty)rEventMapDifficulty.Value; } }
internal DevelopmentRecord(SQLiteDataReader rpReader) { ID = rpReader.GetInt64("time"); var rEquipmentID = rpReader.GetInt32Optional("equipment"); if (rEquipmentID.HasValue) Equipment = KanColleGame.Current.MasterInfo.Equipment[rEquipmentID.Value]; FuelConsumption = rpReader.GetInt32("fuel"); BulletConsumption = rpReader.GetInt32("bullet"); SteelConsumption = rpReader.GetInt32("steel"); BauxiteConsumption = rpReader.GetInt32("bauxite"); SecretaryShip = KanColleGame.Current.MasterInfo.Ships[rpReader.GetInt32("flagship")]; HeadquarterLevel = rpReader.GetInt32("hq_level"); }
internal ConstructionRecord(SQLiteDataReader rpReader) { ID = rpReader.GetInt64("time"); Ship = KanColleGame.Current.MasterInfo.Ships[rpReader.GetInt32("ship")]; FuelConsumption = rpReader.GetInt32("fuel"); BulletConsumption = rpReader.GetInt32("bullet"); SteelConsumption = rpReader.GetInt32("steel"); BauxiteConsumption = rpReader.GetInt32("bauxite"); DevelopmentMaterialConsumption = rpReader.GetInt32("dev_material"); SecretaryShip = KanColleGame.Current.MasterInfo.Ships[rpReader.GetInt32("flagship")]; HeadquarterLevel = rpReader.GetInt32("hq_level"); EmptyDockCount = rpReader.GetInt32Optional("empty_dock"); }