Ejemplo n.º 1
0
        public void Load(IGCSVLine line)
        {
            string value = null;

            if (line.TryGetValue("status", out value))
            {
                this.Status = int.Parse(value);
            }
            if (line.TryGetValue("old_rank", out value))
            {
                this.OldRank = int.Parse(value);
            }
            if (line.TryGetValue("old_fname", out value))
            {
                this.OldFirstName = value;
            }
            if (line.TryGetValue("old_mname", out value))
            {
                this.OldMiddleInitial = value;
            }
            if (line.TryGetValue("old_lname", out value))
            {
                this.OldLastName = value;
            }
        }
Ejemplo n.º 2
0
        public void Load(IGCSVLine line)
        {
            string value = null;

            if (line.TryGetValue("name", out value))
            {
                this.Name = value;
            }
            if (line.TryGetValue("level", out value))
            {
                this.Level = int.Parse(value);
            }
            if (line.TryGetValue("side", out value))
            {
                this.Side = int.Parse(value);
            }
            if (line.TryGetValue("org_num", out value))
            {
                this.OrganizationNumber = int.Parse(value);
            }
            if (line.TryGetValue("state", out value))
            {
                this.State = value;
            }
        }
        public void Load(IGCSVLine line)
        {
            string value = null;

            if (line.TryGetValue("killed", out value))
            {
                this.Killed = int.Parse(value);
            }
            if (line.TryGetValue("wounded", out value))
            {
                this.Wounded = int.Parse(value);
            }
            if (line.TryGetValue("missing", out value))
            {
                this.Missing = int.Parse(value);
            }
            if (line.TryGetValue("returned", out value))
            {
                this.Returned = int.Parse(value);
            }
            if (line.TryGetValue("inflicted", out value))
            {
                this.Inflicted = int.Parse(value);
            }
            if (line.TryGetValue("commander_replaced", out value))
            {
                this.CommanderReplaced = value == "1" ? true : false;
            }
            if (line.TryGetValue("commander_status", out value))
            {
                this.CommanderStatus = int.Parse(value);
            }
        }
Ejemplo n.º 4
0
 private void Save(IGCSVLine line)
 {
     line["status"]    = this.Status.ToString();
     line["old_rank"]  = this.OldRank.ToString();
     line["old_fname"] = this.OldFirstName;
     line["old_mname"] = this.OldMiddleInitial;
     line["old_lname"] = this.OldLastName;
 }
Ejemplo n.º 5
0
 private void Save(IGCSVLine line)
 {
     line["name"]    = this.Name;
     line["level"]   = this.Level.ToString();
     line["side"]    = this.Side.ToString();
     line["org_num"] = this.OrganizationNumber.ToString();
     line["state"]   = this.State;
 }
Ejemplo n.º 6
0
        public void Load(IGCSVLine line)
        {
            string value = null;

             if(line.TryGetValue("o_r", out value))
               this.OldRank = int.Parse( value );
             if(line.TryGetValue("n_r", out value))
               this.NewRank = int.Parse( value );
        }
Ejemplo n.º 7
0
        public void Load(IGCSVLine line)
        {
            string value = null;

            if (line.TryGetValue("men", out value))
            {
                this.Men = int.Parse(value);
            }
            if (line.TryGetValue("exp", out value))
            {
                this.Experience = int.Parse(value);
            }
            if (line.TryGetValue("name", out value))
            {
                this.Name = value;
            }
            if (line.TryGetValue("marksmanship", out value))
            {
                this.Marksmanship = int.Parse(value);
            }
            if (line.TryGetValue("close", out value))
            {
                this.Close = int.Parse(value);
            }
            if (line.TryGetValue("open", out value))
            {
                this.Open = int.Parse(value);
            }
            if (line.TryGetValue("edged", out value))
            {
                this.Edged = int.Parse(value);
            }
            if (line.TryGetValue("firearm", out value))
            {
                this.Firearm = int.Parse(value);
            }
            if (line.TryGetValue("horsemanship", out value))
            {
                this.Horsemanship = int.Parse(value);
            }
            if (line.TryGetValue("weapon_id", out value))
            {
                this.WeaponId = int.Parse(value);
            }
            if (line.TryGetValue("class_id", out value))
            {
                this.ClassId = int.Parse(value);
            }
            if (line.TryGetValue("flag1", out value))
            {
                this.Flag1 = int.Parse(value);
            }
            if (line.TryGetValue("flag2", out value))
            {
                this.Flag2 = int.Parse(value);
            }
        }
 private void Save(IGCSVLine line)
 {
     line["killed"]             = this.Killed.ToString();
     line["wounded"]            = this.Wounded.ToString();
     line["missing"]            = this.Missing.ToString();
     line["returned"]           = this.Returned.ToString();
     line["inflicted"]          = this.Inflicted.ToString();
     line["commander_replaced"] = this.CommanderReplaced  ? "1" : "0";
     line["commander_status"]   = this.CommanderStatus.ToString();
 }
Ejemplo n.º 9
0
 private void Save(IGCSVLine line)
 {
     line["id"]           = this.Id.ToString();
     line["rank"]         = this.Rank.ToString();
     line["fn"]           = this.FirstName;
     line["mn"]           = this.MiddleInitial;
     line["ln"]           = this.LastName;
     line["eng"]          = this.Engagements.ToString();
     line["command_name"] = this.CommandName;
     line["exp"]          = this.Experience.Truncate4();
 }
Ejemplo n.º 10
0
        public void Load(IGCSVLine line)
        {
            string value = null;

            if (line.TryGetValue("men_c", out value))
            {
                this.MenChange = int.Parse(value);
            }
            if (line.TryGetValue("w_r", out value))
            {
                this.WoundedReturned = int.Parse(value);
            }
            if (line.TryGetValue("w_k", out value))
            {
                this.WoundedDied = int.Parse(value);
            }
            if (line.TryGetValue("w_d", out value))
            {
                this.WoundedDischarged = int.Parse(value);
            }
            if (line.TryGetValue("m_l", out value))
            {
                this.MissingLost = int.Parse(value);
            }
            if (line.TryGetValue("m_r", out value))
            {
                this.MissingReturned = int.Parse(value);
            }
            if (line.TryGetValue("t_r", out value))
            {
                this.TroopsRecruited = int.Parse(value);
            }
            if (line.TryGetValue("t_d", out value))
            {
                this.TroopsDeserted = int.Parse(value);
            }
            if (line.TryGetValue("u_r", out value))
            {
                this.UnitReturned = value == "1" ? true : false;
            }
            if (line.TryGetValue("m_c", out value))
            {
                this.MoraleChange = int.Parse(value);
            }
            if (line.TryGetValue("e_c", out value))
            {
                this.ExperienceChange = double.Parse(value);
            }
            if (line.TryGetValue("u_d", out value))
            {
                this.UnitDeleted = value == "1" ? true : false;
            }
        }
Ejemplo n.º 11
0
        public void Load(IGCSVLine line)
        {
            string value = null;

            if (line.TryGetValue("o_r", out value))
            {
                this.OldRank = int.Parse(value);
            }
            if (line.TryGetValue("n_r", out value))
            {
                this.NewRank = int.Parse(value);
            }
        }
Ejemplo n.º 12
0
 private void Save(IGCSVLine line)
 {
     line["men_c"] = this.MenChange.ToString();
     line["w_r"]   = this.WoundedReturned.ToString();
     line["w_k"]   = this.WoundedDied.ToString();
     line["w_d"]   = this.WoundedDischarged.ToString();
     line["m_l"]   = this.MissingLost.ToString();
     line["m_r"]   = this.MissingReturned.ToString();
     line["t_r"]   = this.TroopsRecruited.ToString();
     line["t_d"]   = this.TroopsDeserted.ToString();
     line["u_r"]   = this.UnitReturned  ? "1" : "0";
     line["m_c"]   = this.MoraleChange.ToString();
     line["e_c"]   = this.ExperienceChange.Truncate4();
     line["u_d"]   = this.UnitDeleted  ? "1" : "0";
 }
        public void Load(IGCSVLine line)
        {
            string value = null;

             if(line.TryGetValue("status", out value))
               this.Status = int.Parse( value );
             if(line.TryGetValue("old_rank", out value))
               this.OldRank = int.Parse( value );
             if(line.TryGetValue("old_fname", out value))
               this.OldFirstName =  value ;
             if(line.TryGetValue("old_mname", out value))
               this.OldMiddleInitial =  value ;
             if(line.TryGetValue("old_lname", out value))
               this.OldLastName =  value ;
        }
Ejemplo n.º 14
0
        public void Load(IGCSVLine line)
        {
            string value = null;

             if(line.TryGetValue("name", out value))
               this.Name =  value ;
             if(line.TryGetValue("level", out value))
               this.Level = int.Parse( value );
             if(line.TryGetValue("side", out value))
               this.Side = int.Parse( value );
             if(line.TryGetValue("org_num", out value))
               this.OrganizationNumber = int.Parse( value );
             if(line.TryGetValue("state", out value))
               this.State =  value ;
        }
Ejemplo n.º 15
0
 private void Save(IGCSVLine line)
 {
     line["men"]          = this.Men.ToString();
     line["exp"]          = this.Experience.ToString();
     line["name"]         = this.Name;
     line["marksmanship"] = this.Marksmanship.ToString();
     line["close"]        = this.Close.ToString();
     line["open"]         = this.Open.ToString();
     line["edged"]        = this.Edged.ToString();
     line["firearm"]      = this.Firearm.ToString();
     line["horsemanship"] = this.Horsemanship.ToString();
     line["weapon_id"]    = this.WeaponId.ToString();
     line["class_id"]     = this.ClassId.ToString();
     line["flag1"]        = this.Flag1.ToString();
     line["flag2"]        = this.Flag2.ToString();
 }
Ejemplo n.º 16
0
 private void Save(IGCSVLine line)
 {
     line["id"]          = this.Id.ToString();
     line["rank"]        = this.Rank.ToString();
     line["fname"]       = this.FirstName;
     line["mname"]       = this.MiddleInitial;
     line["lname"]       = this.LastName;
     line["engagements"] = this.Engagements.ToString();
     line["exp"]         = this.Experience.Truncate4();
     line["ability"]     = this.Ability.Truncate4();
     line["command"]     = this.Command.Truncate4();
     line["control"]     = this.Control.Truncate4();
     line["leadership"]  = this.Leadership.Truncate4();
     line["style"]       = this.Style.Truncate4();
     line["portrait"]    = this.Portrait;
     line["morale"]      = this.Morale.ToString();
     line["pl"]          = this.Politics.Truncate4();
 }
Ejemplo n.º 17
0
 private void Save(IGCSVLine line)
 {
     line["total_men"]          = this.TotalMen.ToString();
     line["involved_men"]       = this.InvolvedMen.ToString();
     line["remaining_men"]      = this.RemainingMen.ToString();
     line["total_lost"]         = this.TotalLost.ToString();
     line["captured"]           = this.Captured  ? "1" : "0";
     line["routed"]             = this.Routed  ? "1" : "0";
     line["present"]            = this.Present  ? "1" : "0";
     line["killed"]             = this.Killed.ToString();
     line["wounded"]            = this.Wounded.ToString();
     line["missing"]            = this.Missing.ToString();
     line["returned"]           = this.Returned.ToString();
     line["inflicted"]          = this.Inflicted.ToString();
     line["experience_gain"]    = this.ExperienceGain.Truncate4();
     line["commander_replaced"] = this.CommanderReplaced  ? "1" : "0";
     line["commander_status"]   = this.CommanderStatus.ToString();
 }
        public void Load(IGCSVLine line)
        {
            string value = null;

             if(line.TryGetValue("killed", out value))
               this.Killed = int.Parse( value );
             if(line.TryGetValue("wounded", out value))
               this.Wounded = int.Parse( value );
             if(line.TryGetValue("missing", out value))
               this.Missing = int.Parse( value );
             if(line.TryGetValue("returned", out value))
               this.Returned = int.Parse( value );
             if(line.TryGetValue("inflicted", out value))
               this.Inflicted = int.Parse( value );
             if(line.TryGetValue("commander_replaced", out value))
               this.CommanderReplaced =  value  == "1" ? true : false ;
             if(line.TryGetValue("commander_status", out value))
               this.CommanderStatus = int.Parse( value );
        }
Ejemplo n.º 19
0
 private void Save(IGCSVLine line)
 {
     line["men"]             = this.Men.ToString();
     line["engagements"]     = this.Engagements.ToString();
     line["exp"]             = this.Experience.Truncate4();
     line["name"]            = this.Name;
     line["state"]           = this.State;
     line["regiment_number"] = this.RegimentNumber.ToString();
     line["type"]            = this.Type.ToString();
     line["marksmanship"]    = this.Marksmanship.Truncate4();
     line["close"]           = this.Close.Truncate4();
     line["open"]            = this.Open.Truncate4();
     line["edged"]           = this.Edged.Truncate4();
     line["firearm"]         = this.Firearm.Truncate4();
     line["horsemanship"]    = this.Horsemanship.Truncate4();
     line["weapon_id"]       = this.WeaponId.ToString();
     line["class_id"]        = this.ClassId.ToString();
     line["active"]          = this.Active  ? "1" : "0";
     line["id"]       = this.Id.ToString();
     line["flag1"]    = this.Flag1.ToString();
     line["flag2"]    = this.Flag2.ToString();
     line["t_k"]      = this.TotalKills.ToString();
     line["i_men"]    = this.InitialMen.ToString();
     line["i_exp"]    = this.InitialExperience.Truncate4();
     line["t_w"]      = this.TotalWounded.ToString();
     line["t_mw"]     = this.TotalMWounded.ToString();
     line["t_k2"]     = this.TotalKilled.ToString();
     line["t_m"]      = this.TotalMissing.ToString();
     line["p_m"]      = this.PermanentlyMissing.ToString();
     line["t_d"]      = this.TotalDischarged.ToString();
     line["t_r"]      = this.TotalRecruited.ToString();
     line["c_w"]      = this.CurWounded.ToString();
     line["c_m"]      = this.CurMissing.ToString();
     line["c_s"]      = this.CurSick.ToString();
     line["e_w"]      = this.WoundedExp.Truncate4();
     line["e_m"]      = this.MissingExp.Truncate4();
     line["r_l"]      = this.RecruitLimit.ToString();
     line["g_m"]      = this.UnitMissing  ? "1" : "0";
     line["turn_m"]   = this.TurnMustered.ToString();
     line["c_morale"] = this.CurrentMorale.ToString();
     line["ly"]       = this.Loyalty.ToString();
 }
Ejemplo n.º 20
0
        public void Load(IGCSVLine line)
        {
            string value = null;

             if(line.TryGetValue("id", out value))
               this.Id = int.Parse( value );
             if(line.TryGetValue("rank", out value))
               this.Rank = int.Parse( value );
             if(line.TryGetValue("fn", out value))
               this.FirstName =  value ;
             if(line.TryGetValue("mn", out value))
               this.MiddleInitial =  value ;
             if(line.TryGetValue("ln", out value))
               this.LastName =  value ;
             if(line.TryGetValue("eng", out value))
               this.Engagements = int.Parse( value );
             if(line.TryGetValue("command_name", out value))
               this.CommandName =  value ;
             if(line.TryGetValue("exp", out value))
               this.Experience = double.Parse( value );
        }
Ejemplo n.º 21
0
        public void Load(IGCSVLine line)
        {
            string value = null;

            if (line.TryGetValue("id", out value))
            {
                this.Id = int.Parse(value);
            }
            if (line.TryGetValue("rank", out value))
            {
                this.Rank = int.Parse(value);
            }
            if (line.TryGetValue("fn", out value))
            {
                this.FirstName = value;
            }
            if (line.TryGetValue("mn", out value))
            {
                this.MiddleInitial = value;
            }
            if (line.TryGetValue("ln", out value))
            {
                this.LastName = value;
            }
            if (line.TryGetValue("eng", out value))
            {
                this.Engagements = int.Parse(value);
            }
            if (line.TryGetValue("command_name", out value))
            {
                this.CommandName = value;
            }
            if (line.TryGetValue("exp", out value))
            {
                this.Experience = double.Parse(value);
            }
        }
Ejemplo n.º 22
0
 private void Save(IGCSVLine line)
 {
 }
Ejemplo n.º 23
0
 private void Save(IGCSVLine line)
 {
     line["id"] =  this.Id .ToString();
      line["rank"] =  this.Rank .ToString();
      line["fn"] =  this.FirstName ;
      line["mn"] =  this.MiddleInitial ;
      line["ln"] =  this.LastName ;
      line["eng"] =  this.Engagements .ToString();
      line["command_name"] =  this.CommandName ;
      line["exp"] =  this.Experience .Truncate4();
 }
Ejemplo n.º 24
0
 public void Load(IGCSVLine line)
 {
     string value = null;
 }
Ejemplo n.º 25
0
 public void Load(IGCSVLine line)
 {
     string value = null;
 }
Ejemplo n.º 26
0
        public void Load(IGCSVLine line)
        {
            string value = null;

             if(line.TryGetValue("men_c", out value))
               this.MenChange = int.Parse( value );
             if(line.TryGetValue("w_r", out value))
               this.WoundedReturned = int.Parse( value );
             if(line.TryGetValue("w_k", out value))
               this.WoundedDied = int.Parse( value );
             if(line.TryGetValue("w_d", out value))
               this.WoundedDischarged = int.Parse( value );
             if(line.TryGetValue("m_l", out value))
               this.MissingLost = int.Parse( value );
             if(line.TryGetValue("m_r", out value))
               this.MissingReturned = int.Parse( value );
             if(line.TryGetValue("t_r", out value))
               this.TroopsRecruited = int.Parse( value );
             if(line.TryGetValue("t_d", out value))
               this.TroopsDeserted = int.Parse( value );
             if(line.TryGetValue("u_r", out value))
               this.UnitReturned =  value  == "1" ? true : false ;
             if(line.TryGetValue("m_c", out value))
               this.MoraleChange = int.Parse( value );
             if(line.TryGetValue("e_c", out value))
               this.ExperienceChange = double.Parse( value );
             if(line.TryGetValue("u_d", out value))
               this.UnitDeleted =  value  == "1" ? true : false ;
        }
Ejemplo n.º 27
0
 private void Save(IGCSVLine line)
 {
     line["o_r"] = this.OldRank.ToString();
     line["n_r"] = this.NewRank.ToString();
 }
 private void Save(IGCSVLine line)
 {
     line["status"] =  this.Status .ToString();
      line["old_rank"] =  this.OldRank .ToString();
      line["old_fname"] =  this.OldFirstName ;
      line["old_mname"] =  this.OldMiddleInitial ;
      line["old_lname"] =  this.OldLastName ;
 }
Ejemplo n.º 29
0
        public void Load(IGCSVLine line)
        {
            string value = null;

             if(line.TryGetValue("total_men", out value))
               this.TotalMen = int.Parse( value );
             if(line.TryGetValue("involved_men", out value))
               this.InvolvedMen = int.Parse( value );
             if(line.TryGetValue("remaining_men", out value))
               this.RemainingMen = int.Parse( value );
             if(line.TryGetValue("total_lost", out value))
               this.TotalLost = int.Parse( value );
             if(line.TryGetValue("captured", out value))
               this.Captured =  value  == "1" ? true : false ;
             if(line.TryGetValue("routed", out value))
               this.Routed =  value  == "1" ? true : false ;
             if(line.TryGetValue("present", out value))
               this.Present =  value  == "1" ? true : false ;
             if(line.TryGetValue("killed", out value))
               this.Killed = int.Parse( value );
             if(line.TryGetValue("wounded", out value))
               this.Wounded = int.Parse( value );
             if(line.TryGetValue("missing", out value))
               this.Missing = int.Parse( value );
             if(line.TryGetValue("returned", out value))
               this.Returned = int.Parse( value );
             if(line.TryGetValue("inflicted", out value))
               this.Inflicted = int.Parse( value );
             if(line.TryGetValue("experience_gain", out value))
               this.ExperienceGain = double.Parse( value );
             if(line.TryGetValue("commander_replaced", out value))
               this.CommanderReplaced =  value  == "1" ? true : false ;
             if(line.TryGetValue("commander_status", out value))
               this.CommanderStatus = int.Parse( value );
        }
Ejemplo n.º 30
0
 private void Save(IGCSVLine line)
 {
     line["o_r"] =  this.OldRank .ToString();
      line["n_r"] =  this.NewRank .ToString();
 }
Ejemplo n.º 31
0
 private void Save(IGCSVLine line)
 {
 }
Ejemplo n.º 32
0
        public void Load(IGCSVLine line)
        {
            string value = null;

             if(line.TryGetValue("id", out value))
               this.Id = int.Parse( value );
             if(line.TryGetValue("rank", out value))
               this.Rank = int.Parse( value );
             if(line.TryGetValue("fname", out value))
               this.FirstName =  value ;
             if(line.TryGetValue("mname", out value))
               this.MiddleInitial =  value ;
             if(line.TryGetValue("lname", out value))
               this.LastName =  value ;
             if(line.TryGetValue("engagements", out value))
               this.Engagements = int.Parse( value );
             if(line.TryGetValue("exp", out value))
               this.Experience = double.Parse( value );
             if(line.TryGetValue("ability", out value))
               this.Ability = double.Parse( value );
             if(line.TryGetValue("command", out value))
               this.Command = double.Parse( value );
             if(line.TryGetValue("control", out value))
               this.Control = double.Parse( value );
             if(line.TryGetValue("leadership", out value))
               this.Leadership = double.Parse( value );
             if(line.TryGetValue("style", out value))
               this.Style = double.Parse( value );
             if(line.TryGetValue("portrait", out value))
               this.Portrait =  value ;
             if(line.TryGetValue("morale", out value))
               this.Morale = int.Parse( value );
             if(line.TryGetValue("pl", out value))
               this.Politics = double.Parse( value );
        }
Ejemplo n.º 33
0
        public void Load(IGCSVLine line)
        {
            string value = null;

             if(line.TryGetValue("men", out value))
               this.Men = int.Parse( value );
             if(line.TryGetValue("engagements", out value))
               this.Engagements = int.Parse( value );
             if(line.TryGetValue("exp", out value))
               this.Experience = double.Parse( value );
             if(line.TryGetValue("name", out value))
               this.Name =  value ;
             if(line.TryGetValue("state", out value))
               this.State =  value ;
             if(line.TryGetValue("regiment_number", out value))
               this.RegimentNumber = int.Parse( value );
             if(line.TryGetValue("type", out value))
               this.Type = int.Parse( value );
             if(line.TryGetValue("marksmanship", out value))
               this.Marksmanship = double.Parse( value );
             if(line.TryGetValue("close", out value))
               this.Close = double.Parse( value );
             if(line.TryGetValue("open", out value))
               this.Open = double.Parse( value );
             if(line.TryGetValue("edged", out value))
               this.Edged = double.Parse( value );
             if(line.TryGetValue("firearm", out value))
               this.Firearm = double.Parse( value );
             if(line.TryGetValue("horsemanship", out value))
               this.Horsemanship = double.Parse( value );
             if(line.TryGetValue("weapon_id", out value))
               this.WeaponId = int.Parse( value );
             if(line.TryGetValue("class_id", out value))
               this.ClassId = int.Parse( value );
             if(line.TryGetValue("active", out value))
               this.Active =  value  == "1" ? true : false ;
             if(line.TryGetValue("id", out value))
               this.Id = int.Parse( value );
             if(line.TryGetValue("flag1", out value))
               this.Flag1 = int.Parse( value );
             if(line.TryGetValue("flag2", out value))
               this.Flag2 = int.Parse( value );
             if(line.TryGetValue("t_k", out value))
               this.TotalKills = int.Parse( value );
             if(line.TryGetValue("i_men", out value))
               this.InitialMen = int.Parse( value );
             if(line.TryGetValue("i_exp", out value))
               this.InitialExperience = double.Parse( value );
             if(line.TryGetValue("t_w", out value))
               this.TotalWounded = int.Parse( value );
             if(line.TryGetValue("t_mw", out value))
               this.TotalMWounded = int.Parse( value );
             if(line.TryGetValue("t_k2", out value))
               this.TotalKilled = int.Parse( value );
             if(line.TryGetValue("t_m", out value))
               this.TotalMissing = int.Parse( value );
             if(line.TryGetValue("p_m", out value))
               this.PermanentlyMissing = int.Parse( value );
             if(line.TryGetValue("t_d", out value))
               this.TotalDischarged = int.Parse( value );
             if(line.TryGetValue("t_r", out value))
               this.TotalRecruited = int.Parse( value );
             if(line.TryGetValue("c_w", out value))
               this.CurWounded = int.Parse( value );
             if(line.TryGetValue("c_m", out value))
               this.CurMissing = int.Parse( value );
             if(line.TryGetValue("c_s", out value))
               this.CurSick = int.Parse( value );
             if(line.TryGetValue("e_w", out value))
               this.WoundedExp = double.Parse( value );
             if(line.TryGetValue("e_m", out value))
               this.MissingExp = double.Parse( value );
             if(line.TryGetValue("r_l", out value))
               this.RecruitLimit = int.Parse( value );
             if(line.TryGetValue("g_m", out value))
               this.UnitMissing =  value  == "1" ? true : false ;
             if(line.TryGetValue("turn_m", out value))
               this.TurnMustered = int.Parse( value );
             if(line.TryGetValue("c_morale", out value))
               this.CurrentMorale = int.Parse( value );
             if(line.TryGetValue("ly", out value))
               this.Loyalty = int.Parse( value );
        }
Ejemplo n.º 34
0
        public void Load(IGCSVLine line)
        {
            string value = null;

             if(line.TryGetValue("men", out value))
               this.Men = int.Parse( value );
             if(line.TryGetValue("exp", out value))
               this.Experience = int.Parse( value );
             if(line.TryGetValue("name", out value))
               this.Name =  value ;
             if(line.TryGetValue("marksmanship", out value))
               this.Marksmanship = int.Parse( value );
             if(line.TryGetValue("close", out value))
               this.Close = int.Parse( value );
             if(line.TryGetValue("open", out value))
               this.Open = int.Parse( value );
             if(line.TryGetValue("edged", out value))
               this.Edged = int.Parse( value );
             if(line.TryGetValue("firearm", out value))
               this.Firearm = int.Parse( value );
             if(line.TryGetValue("horsemanship", out value))
               this.Horsemanship = int.Parse( value );
             if(line.TryGetValue("weapon_id", out value))
               this.WeaponId = int.Parse( value );
             if(line.TryGetValue("class_id", out value))
               this.ClassId = int.Parse( value );
             if(line.TryGetValue("flag1", out value))
               this.Flag1 = int.Parse( value );
             if(line.TryGetValue("flag2", out value))
               this.Flag2 = int.Parse( value );
        }
Ejemplo n.º 35
0
 private void Save(IGCSVLine line)
 {
     line["name"] =  this.Name ;
      line["level"] =  this.Level .ToString();
      line["side"] =  this.Side .ToString();
      line["org_num"] =  this.OrganizationNumber .ToString();
      line["state"] =  this.State ;
 }
Ejemplo n.º 36
0
        public void Load(IGCSVLine line)
        {
            string value = null;

            if (line.TryGetValue("total_men", out value))
            {
                this.TotalMen = int.Parse(value);
            }
            if (line.TryGetValue("involved_men", out value))
            {
                this.InvolvedMen = int.Parse(value);
            }
            if (line.TryGetValue("remaining_men", out value))
            {
                this.RemainingMen = int.Parse(value);
            }
            if (line.TryGetValue("total_lost", out value))
            {
                this.TotalLost = int.Parse(value);
            }
            if (line.TryGetValue("captured", out value))
            {
                this.Captured = value == "1" ? true : false;
            }
            if (line.TryGetValue("routed", out value))
            {
                this.Routed = value == "1" ? true : false;
            }
            if (line.TryGetValue("present", out value))
            {
                this.Present = value == "1" ? true : false;
            }
            if (line.TryGetValue("killed", out value))
            {
                this.Killed = int.Parse(value);
            }
            if (line.TryGetValue("wounded", out value))
            {
                this.Wounded = int.Parse(value);
            }
            if (line.TryGetValue("missing", out value))
            {
                this.Missing = int.Parse(value);
            }
            if (line.TryGetValue("returned", out value))
            {
                this.Returned = int.Parse(value);
            }
            if (line.TryGetValue("inflicted", out value))
            {
                this.Inflicted = int.Parse(value);
            }
            if (line.TryGetValue("experience_gain", out value))
            {
                this.ExperienceGain = double.Parse(value);
            }
            if (line.TryGetValue("commander_replaced", out value))
            {
                this.CommanderReplaced = value == "1" ? true : false;
            }
            if (line.TryGetValue("commander_status", out value))
            {
                this.CommanderStatus = int.Parse(value);
            }
        }
Ejemplo n.º 37
0
 private void Save(IGCSVLine line)
 {
     line["total_men"] =  this.TotalMen .ToString();
      line["involved_men"] =  this.InvolvedMen .ToString();
      line["remaining_men"] =  this.RemainingMen .ToString();
      line["total_lost"] =  this.TotalLost .ToString();
      line["captured"] =  this.Captured  ? "1" : "0" ;
      line["routed"] =  this.Routed  ? "1" : "0" ;
      line["present"] =  this.Present  ? "1" : "0" ;
      line["killed"] =  this.Killed .ToString();
      line["wounded"] =  this.Wounded .ToString();
      line["missing"] =  this.Missing .ToString();
      line["returned"] =  this.Returned .ToString();
      line["inflicted"] =  this.Inflicted .ToString();
      line["experience_gain"] =  this.ExperienceGain .Truncate4();
      line["commander_replaced"] =  this.CommanderReplaced  ? "1" : "0" ;
      line["commander_status"] =  this.CommanderStatus .ToString();
 }
Ejemplo n.º 38
0
        public void Load(IGCSVLine line)
        {
            string value = null;

            if (line.TryGetValue("men", out value))
            {
                this.Men = int.Parse(value);
            }
            if (line.TryGetValue("engagements", out value))
            {
                this.Engagements = int.Parse(value);
            }
            if (line.TryGetValue("exp", out value))
            {
                this.Experience = double.Parse(value);
            }
            if (line.TryGetValue("name", out value))
            {
                this.Name = value;
            }
            if (line.TryGetValue("state", out value))
            {
                this.State = value;
            }
            if (line.TryGetValue("regiment_number", out value))
            {
                this.RegimentNumber = int.Parse(value);
            }
            if (line.TryGetValue("type", out value))
            {
                this.Type = int.Parse(value);
            }
            if (line.TryGetValue("marksmanship", out value))
            {
                this.Marksmanship = double.Parse(value);
            }
            if (line.TryGetValue("close", out value))
            {
                this.Close = double.Parse(value);
            }
            if (line.TryGetValue("open", out value))
            {
                this.Open = double.Parse(value);
            }
            if (line.TryGetValue("edged", out value))
            {
                this.Edged = double.Parse(value);
            }
            if (line.TryGetValue("firearm", out value))
            {
                this.Firearm = double.Parse(value);
            }
            if (line.TryGetValue("horsemanship", out value))
            {
                this.Horsemanship = double.Parse(value);
            }
            if (line.TryGetValue("weapon_id", out value))
            {
                this.WeaponId = int.Parse(value);
            }
            if (line.TryGetValue("class_id", out value))
            {
                this.ClassId = int.Parse(value);
            }
            if (line.TryGetValue("active", out value))
            {
                this.Active = value == "1" ? true : false;
            }
            if (line.TryGetValue("id", out value))
            {
                this.Id = int.Parse(value);
            }
            if (line.TryGetValue("flag1", out value))
            {
                this.Flag1 = int.Parse(value);
            }
            if (line.TryGetValue("flag2", out value))
            {
                this.Flag2 = int.Parse(value);
            }
            if (line.TryGetValue("t_k", out value))
            {
                this.TotalKills = int.Parse(value);
            }
            if (line.TryGetValue("i_men", out value))
            {
                this.InitialMen = int.Parse(value);
            }
            if (line.TryGetValue("i_exp", out value))
            {
                this.InitialExperience = double.Parse(value);
            }
            if (line.TryGetValue("t_w", out value))
            {
                this.TotalWounded = int.Parse(value);
            }
            if (line.TryGetValue("t_mw", out value))
            {
                this.TotalMWounded = int.Parse(value);
            }
            if (line.TryGetValue("t_k2", out value))
            {
                this.TotalKilled = int.Parse(value);
            }
            if (line.TryGetValue("t_m", out value))
            {
                this.TotalMissing = int.Parse(value);
            }
            if (line.TryGetValue("p_m", out value))
            {
                this.PermanentlyMissing = int.Parse(value);
            }
            if (line.TryGetValue("t_d", out value))
            {
                this.TotalDischarged = int.Parse(value);
            }
            if (line.TryGetValue("t_r", out value))
            {
                this.TotalRecruited = int.Parse(value);
            }
            if (line.TryGetValue("c_w", out value))
            {
                this.CurWounded = int.Parse(value);
            }
            if (line.TryGetValue("c_m", out value))
            {
                this.CurMissing = int.Parse(value);
            }
            if (line.TryGetValue("c_s", out value))
            {
                this.CurSick = int.Parse(value);
            }
            if (line.TryGetValue("e_w", out value))
            {
                this.WoundedExp = double.Parse(value);
            }
            if (line.TryGetValue("e_m", out value))
            {
                this.MissingExp = double.Parse(value);
            }
            if (line.TryGetValue("r_l", out value))
            {
                this.RecruitLimit = int.Parse(value);
            }
            if (line.TryGetValue("g_m", out value))
            {
                this.UnitMissing = value == "1" ? true : false;
            }
            if (line.TryGetValue("turn_m", out value))
            {
                this.TurnMustered = int.Parse(value);
            }
            if (line.TryGetValue("c_morale", out value))
            {
                this.CurrentMorale = int.Parse(value);
            }
            if (line.TryGetValue("ly", out value))
            {
                this.Loyalty = int.Parse(value);
            }
        }
Ejemplo n.º 39
0
 private void Save(IGCSVLine line)
 {
     line["men_c"] =  this.MenChange .ToString();
      line["w_r"] =  this.WoundedReturned .ToString();
      line["w_k"] =  this.WoundedDied .ToString();
      line["w_d"] =  this.WoundedDischarged .ToString();
      line["m_l"] =  this.MissingLost .ToString();
      line["m_r"] =  this.MissingReturned .ToString();
      line["t_r"] =  this.TroopsRecruited .ToString();
      line["t_d"] =  this.TroopsDeserted .ToString();
      line["u_r"] =  this.UnitReturned  ? "1" : "0" ;
      line["m_c"] =  this.MoraleChange .ToString();
      line["e_c"] =  this.ExperienceChange .Truncate4();
      line["u_d"] =  this.UnitDeleted  ? "1" : "0" ;
 }
Ejemplo n.º 40
0
 private void Save(IGCSVLine line)
 {
     line["id"] =  this.Id .ToString();
      line["rank"] =  this.Rank .ToString();
      line["fname"] =  this.FirstName ;
      line["mname"] =  this.MiddleInitial ;
      line["lname"] =  this.LastName ;
      line["engagements"] =  this.Engagements .ToString();
      line["exp"] =  this.Experience .Truncate4();
      line["ability"] =  this.Ability .Truncate4();
      line["command"] =  this.Command .Truncate4();
      line["control"] =  this.Control .Truncate4();
      line["leadership"] =  this.Leadership .Truncate4();
      line["style"] =  this.Style .Truncate4();
      line["portrait"] =  this.Portrait ;
      line["morale"] =  this.Morale .ToString();
      line["pl"] =  this.Politics .Truncate4();
 }
Ejemplo n.º 41
0
 private void Save(IGCSVLine line)
 {
     line["men"] =  this.Men .ToString();
      line["exp"] =  this.Experience .ToString();
      line["name"] =  this.Name ;
      line["marksmanship"] =  this.Marksmanship .ToString();
      line["close"] =  this.Close .ToString();
      line["open"] =  this.Open .ToString();
      line["edged"] =  this.Edged .ToString();
      line["firearm"] =  this.Firearm .ToString();
      line["horsemanship"] =  this.Horsemanship .ToString();
      line["weapon_id"] =  this.WeaponId .ToString();
      line["class_id"] =  this.ClassId .ToString();
      line["flag1"] =  this.Flag1 .ToString();
      line["flag2"] =  this.Flag2 .ToString();
 }
Ejemplo n.º 42
0
        public void Load(IGCSVLine line)
        {
            string value = null;

            if (line.TryGetValue("id", out value))
            {
                this.Id = int.Parse(value);
            }
            if (line.TryGetValue("rank", out value))
            {
                this.Rank = int.Parse(value);
            }
            if (line.TryGetValue("fname", out value))
            {
                this.FirstName = value;
            }
            if (line.TryGetValue("mname", out value))
            {
                this.MiddleInitial = value;
            }
            if (line.TryGetValue("lname", out value))
            {
                this.LastName = value;
            }
            if (line.TryGetValue("engagements", out value))
            {
                this.Engagements = int.Parse(value);
            }
            if (line.TryGetValue("exp", out value))
            {
                this.Experience = double.Parse(value);
            }
            if (line.TryGetValue("ability", out value))
            {
                this.Ability = double.Parse(value);
            }
            if (line.TryGetValue("command", out value))
            {
                this.Command = double.Parse(value);
            }
            if (line.TryGetValue("control", out value))
            {
                this.Control = double.Parse(value);
            }
            if (line.TryGetValue("leadership", out value))
            {
                this.Leadership = double.Parse(value);
            }
            if (line.TryGetValue("style", out value))
            {
                this.Style = double.Parse(value);
            }
            if (line.TryGetValue("portrait", out value))
            {
                this.Portrait = value;
            }
            if (line.TryGetValue("morale", out value))
            {
                this.Morale = int.Parse(value);
            }
            if (line.TryGetValue("pl", out value))
            {
                this.Politics = double.Parse(value);
            }
        }
Ejemplo n.º 43
0
 private void Save(IGCSVLine line)
 {
     line["men"] =  this.Men .ToString();
      line["engagements"] =  this.Engagements .ToString();
      line["exp"] =  this.Experience .Truncate4();
      line["name"] =  this.Name ;
      line["state"] =  this.State ;
      line["regiment_number"] =  this.RegimentNumber .ToString();
      line["type"] =  this.Type .ToString();
      line["marksmanship"] =  this.Marksmanship .Truncate4();
      line["close"] =  this.Close .Truncate4();
      line["open"] =  this.Open .Truncate4();
      line["edged"] =  this.Edged .Truncate4();
      line["firearm"] =  this.Firearm .Truncate4();
      line["horsemanship"] =  this.Horsemanship .Truncate4();
      line["weapon_id"] =  this.WeaponId .ToString();
      line["class_id"] =  this.ClassId .ToString();
      line["active"] =  this.Active  ? "1" : "0" ;
      line["id"] =  this.Id .ToString();
      line["flag1"] =  this.Flag1 .ToString();
      line["flag2"] =  this.Flag2 .ToString();
      line["t_k"] =  this.TotalKills .ToString();
      line["i_men"] =  this.InitialMen .ToString();
      line["i_exp"] =  this.InitialExperience .Truncate4();
      line["t_w"] =  this.TotalWounded .ToString();
      line["t_mw"] =  this.TotalMWounded .ToString();
      line["t_k2"] =  this.TotalKilled .ToString();
      line["t_m"] =  this.TotalMissing .ToString();
      line["p_m"] =  this.PermanentlyMissing .ToString();
      line["t_d"] =  this.TotalDischarged .ToString();
      line["t_r"] =  this.TotalRecruited .ToString();
      line["c_w"] =  this.CurWounded .ToString();
      line["c_m"] =  this.CurMissing .ToString();
      line["c_s"] =  this.CurSick .ToString();
      line["e_w"] =  this.WoundedExp .Truncate4();
      line["e_m"] =  this.MissingExp .Truncate4();
      line["r_l"] =  this.RecruitLimit .ToString();
      line["g_m"] =  this.UnitMissing  ? "1" : "0" ;
      line["turn_m"] =  this.TurnMustered .ToString();
      line["c_morale"] =  this.CurrentMorale .ToString();
      line["ly"] =  this.Loyalty .ToString();
 }
 private void Save(IGCSVLine line)
 {
     line["killed"] =  this.Killed .ToString();
      line["wounded"] =  this.Wounded .ToString();
      line["missing"] =  this.Missing .ToString();
      line["returned"] =  this.Returned .ToString();
      line["inflicted"] =  this.Inflicted .ToString();
      line["commander_replaced"] =  this.CommanderReplaced  ? "1" : "0" ;
      line["commander_status"] =  this.CommanderStatus .ToString();
 }