Пример #1
0
 /// <summary>
 /// Create a new Bestiary object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="actorTypeId">Initial value of the ActorTypeId property.</param>
 /// <param name="internalId">Initial value of the InternalId property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="description">Initial value of the Description property.</param>
 /// <param name="currentHitPoints">Initial value of the CurrentHitPoints property.</param>
 /// <param name="sizeMultiplier">Initial value of the SizeMultiplier property.</param>
 public static Bestiary CreateBestiary(global::System.Int32 id, global::System.Int32 actorTypeId, global::System.String internalId, global::System.String name, global::System.String description, global::System.Decimal currentHitPoints, global::System.Decimal sizeMultiplier)
 {
     Bestiary bestiary = new Bestiary();
     bestiary.Id = id;
     bestiary.ActorTypeId = actorTypeId;
     bestiary.InternalId = internalId;
     bestiary.Name = name;
     bestiary.Description = description;
     bestiary.CurrentHitPoints = currentHitPoints;
     bestiary.SizeMultiplier = sizeMultiplier;
     return bestiary;
 }
Пример #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Bestiaries EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToBestiaries(Bestiary bestiary)
 {
     base.AddObject("Bestiaries", bestiary);
 }