Пример #1
0
 /// <summary>Returns a new instance of the appropriate class of an object based on its object ID.</summary>
 /// <param name="objectID">The object ID of the new object.</param>
 public static GeneralObject GetNewObjectInstance(SpecialBlockType objectID) => GetNewObjectInstance((int)objectID);
Пример #2
0
 /// <summary>Creates a new instance of the <seealso cref="ObjectIDAttribute"/> attribute.</summary>
 /// <param name="objectID">The object ID of the <seealso cref="SpecialBlock"/>.</param>
 public ObjectIDAttribute(SpecialBlockType objectID) : this((int)objectID)
 {
 }