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"); }