/// <summary> /// /// </summary> /// <param name="g"></param> public static void CreateGame(AleaBelliGame g) { // create the local player g.AddPlayer(new Player() { PlayerId = 1, Name = "Player" }); // create the nations g.AddNation(new Nation() { NationId = NATION_USA, Name = "Union" }); g.AddNation(new Nation() { NationId = NATION_CSA, Name = "Conferderacy" }); // create an army Army armyOfThePotomac = g.AddArmy(new Army() { ArmyId = ARMY_USA_POTOMAC, Name = "Army Of The Potomac" }); Corps firstCorps = armyOfThePotomac.AddCorps(new Corps() { CorpId = 1, Name = "First Corps" }); ArmyDivision firstDivision = firstCorps.AddDivision(new ArmyDivision() { DivisionId = 1, Name = "1st Division" }); Brigade brigade1 = firstDivision.AddBrigade(new Brigade() { BrigadeId = 1, Name = "Iron Brigade", ShortName = "Iron", MapX = 400, MapY = 400, FacingInDegrees = 0 }); Regiment r1 = g.AddRegiment(brigade1, new Regiment() { RegimentId = 1, Name = "1st New York", ShortName = "1st NY", RegimentFormation = RegimentFormation.Line2, FacingInDegrees = 45, MapX = 100, MapY = 100 }); Regiment r2 = g.AddRegiment(brigade1, new Regiment() { RegimentId = 1, Name = "2nd New York", ShortName = "2nd NY", RegimentFormation = RegimentFormation.Line2, FacingInDegrees = 90, MapX = 200, MapY = 150 }); Regiment r3 = g.AddRegiment(brigade1, new Regiment() { RegimentId = 1, Name = "3rd New York", ShortName = "3rd NY", RegimentFormation = RegimentFormation.Line2, FacingInDegrees = 120, MapX = 300, MapY = 200 }); Regiment r4 = g.AddRegiment(brigade1, new Regiment() { RegimentId = 1, Name = "4th New York", ShortName = "4th NY", RegimentFormation = RegimentFormation.Line2, FacingInDegrees = 270, MapX = 400, MapY = 230 }); }