public VehicleEquipModel(int id) : base(id) { var row = GetVehicleEquipRow(); PartType = row.PartType; Attack = row.Attack; Defence = row.Defence; RangeType = row.RangeType; Magazine = row.Magazine; Weight = row.Weight; Load = row.Load; MaxDefence = row.MaxDefence; MaxMagazine = row.MaxMagazine; MaxWeight = row.MaxWeight; MainHole = row.MainHole; SubHole = row.SubHole; SEHole = row.SEHole; MainGunLocation = row.MainGunLocation; SubGunLocation = row.SubGunLocation; SEGunLocation = row.SEGunLocation; CanTrans = row.CanTrans; TransPrice = row.TransPrice; TransId = row.TransId; }
public void ParseDataRow(string dataRowText) { string[] text = DataTableExtension.SplitDataRow(dataRowText); int index = 0; index++; Id = int.Parse(text[index++]); PartType = (HumanPartType)int.Parse(text[index++]); int[] canWorn = Split(text[index++]); UsablePlayerTypes = new List <PlayerType>(); if (canWorn[0] == 1) { UsablePlayerTypes.Add(PlayerType.Rebana); } if (canWorn[1] == 1) { UsablePlayerTypes.Add(PlayerType.Cliff); } if (canWorn[2] == 1) { UsablePlayerTypes.Add(PlayerType.Margaret); } Attack = int.Parse(text[index++]); Defence = int.Parse(text[index++]); RangeType = (InfluenceRangeType)int.Parse(text[index++]); }
public HumanEquipModel(int id) : base(id) { var row = GetHumanEquipRow(); PartType = row.PartType; UsablePlayerTypes = row.UsablePlayerTypes; Attack = row.Attack; Defence = row.Defence; RangeType = row.RangeType; }
public void ParseDataRow(string dataRowText) { string[] text = DataTableExtension.SplitDataRow(dataRowText); int index = 0; index++; Id = int.Parse(text[index++]); GoodsType = (GoodsType)int.Parse(text[index++]); UseType = int.Parse(text[index++]); CanCombat = bool.Parse(text[index++]); ConsumeType = (GoodsConsumeType)int.Parse(text[index++]); HP = int.Parse(text[index++]); PAG = int.Parse(text[index++]); Attack = int.Parse(text[index++]); RangeType = (InfluenceRangeType)int.Parse(text[index++]); }