private Scenario CreateScenario(Panzer_Scenario panzer_Scenario) { Scenario scenario = new Scenario(); scenario.ActiveInd = panzer_Scenario.ActiveInd; scenario.MaxUnitExperience = panzer_Scenario.MaxUnitStrength; scenario.MaxUnitStrength = panzer_Scenario.MaxUnitStrength; scenario.NumberOfTurns = panzer_Scenario.Turns; scenario.ScenarioDescription = panzer_Scenario.ScenarioDescription; scenario.ScenarioId = panzer_Scenario.ScenarioId; scenario.ScenarioName = panzer_Scenario.ScenarioName; scenario.ScenarioStart = new DateTime(panzer_Scenario.Year, panzer_Scenario.Month, panzer_Scenario.Day); scenario.StartingWeatherId = panzer_Scenario.CurrentWeather; scenario.DaysPerTurn = panzer_Scenario.DaysPerTurn; scenario.TurnsPerDay = panzer_Scenario.TurnsPerDay; scenario.WeatherZoneId = panzer_Scenario.WeatherZone; return scenario; }
/// <summary> /// Create a new Panzer_Scenario object. /// </summary> /// <param name="scenarioId">Initial value of the ScenarioId property.</param> /// <param name="scenarioName">Initial value of the ScenarioName property.</param> /// <param name="scenarioDescription">Initial value of the ScenarioDescription property.</param> /// <param name="turns">Initial value of the Turns property.</param> /// <param name="year">Initial value of the Year property.</param> /// <param name="month">Initial value of the Month property.</param> /// <param name="day">Initial value of the Day property.</param> /// <param name="turnsPerDay">Initial value of the TurnsPerDay property.</param> /// <param name="daysPerTurn">Initial value of the DaysPerTurn property.</param> /// <param name="currentWeather">Initial value of the CurrentWeather property.</param> /// <param name="weatherZone">Initial value of the WeatherZone property.</param> /// <param name="maxUnitStrength">Initial value of the MaxUnitStrength property.</param> /// <param name="maxUnitExperience">Initial value of the MaxUnitExperience property.</param> /// <param name="activeInd">Initial value of the ActiveInd property.</param> public static Panzer_Scenario CreatePanzer_Scenario(global::System.Int32 scenarioId, global::System.String scenarioName, global::System.String scenarioDescription, global::System.Int32 turns, global::System.Int32 year, global::System.Int32 month, global::System.Int32 day, global::System.Int32 turnsPerDay, global::System.Int32 daysPerTurn, global::System.Int32 currentWeather, global::System.Int32 weatherZone, global::System.Int32 maxUnitStrength, global::System.Int32 maxUnitExperience, global::System.Boolean activeInd) { Panzer_Scenario panzer_Scenario = new Panzer_Scenario(); panzer_Scenario.ScenarioId = scenarioId; panzer_Scenario.ScenarioName = scenarioName; panzer_Scenario.ScenarioDescription = scenarioDescription; panzer_Scenario.Turns = turns; panzer_Scenario.Year = year; panzer_Scenario.Month = month; panzer_Scenario.Day = day; panzer_Scenario.TurnsPerDay = turnsPerDay; panzer_Scenario.DaysPerTurn = daysPerTurn; panzer_Scenario.CurrentWeather = currentWeather; panzer_Scenario.WeatherZone = weatherZone; panzer_Scenario.MaxUnitStrength = maxUnitStrength; panzer_Scenario.MaxUnitExperience = maxUnitExperience; panzer_Scenario.ActiveInd = activeInd; return panzer_Scenario; }
/// <summary> /// Deprecated Method for adding a new object to the Panzer_Scenario EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPanzer_Scenario(Panzer_Scenario panzer_Scenario) { base.AddObject("Panzer_Scenario", panzer_Scenario); }