Beispiel #1
0
 /// <summary>
 /// Create a new BasicMonster object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="health">Initial value of the Health property.</param>
 /// <param name="armor">Initial value of the Armor property.</param>
 /// <param name="speed">Initial value of the Speed property.</param>
 /// <param name="skillsId">Initial value of the SkillsId property.</param>
 /// <param name="model">Initial value of the Model property.</param>
 /// <param name="texture">Initial value of the Texture property.</param>
 /// <param name="money">Initial value of the Money property.</param>
 /// <param name="lvl">Initial value of the Lvl property.</param>
 public static BasicMonster CreateBasicMonster(global::System.Int32 id, global::System.String name, global::System.Int32 health, global::System.Double armor, global::System.Double speed, global::System.Int32 skillsId, global::System.String model, global::System.String texture, global::System.Int32 money, global::System.Int32 lvl)
 {
     BasicMonster basicMonster = new BasicMonster();
     basicMonster.Id = id;
     basicMonster.Name = name;
     basicMonster.Health = health;
     basicMonster.Armor = armor;
     basicMonster.Speed = speed;
     basicMonster.SkillsId = skillsId;
     basicMonster.Model = model;
     basicMonster.Texture = texture;
     basicMonster.Money = money;
     basicMonster.Lvl = lvl;
     return basicMonster;
 }
Beispiel #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the BasicMonsters EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToBasicMonsters(BasicMonster basicMonster)
 {
     base.AddObject("BasicMonsters", basicMonster);
 }