示例#1
0
 public MapObjectRecord(string name, Vector3 position, MOBObjectType type, Vector3 scale, Vector3 rotation)
 {
     this.Name     = name;
     this.Position = position;
     this.Type     = type;
     this.Scale    = scale;
     this.Rotation = rotation;
 }
示例#2
0
 /// <summary>
 /// Initializes a new <see cref="MOBObject"/>
 /// </summary>
 /// <param name="name">Name of this <see cref="MOBObject"/></param>
 /// <param name="type">Type of this <see cref="MOBObject"/></param>
 /// <param name="position">Position of this <see cref="MOBObject"/></param>
 /// <param name="rotation">Scale of this <see cref="MOBObject"/></param>
 /// <param name="scale">Scale of this <see cref="MOBObject"/></param>
 /// <param name="reservedVector1">Used to store additional Vector data of this <see cref="MOBObject"/></param>
 /// <param name="reservedVector2">Used to store additional Vector data of this <see cref="MOBObject"/></param>
 public MOBObject(string name, MOBObjectType type, Vector3 position, Vector3 rotation, Vector3 scale, Vector3 reservedVector1, Vector3 reservedVector2)
 {
     this.Name            = name;
     this.Type            = type;
     this.Position        = position;
     this.Rotation        = rotation;
     this.Scale           = scale;
     this.ReservedVector1 = reservedVector1;
     this.ReservedVector2 = reservedVector2;
 }
 /// <summary>
 /// Initializes a new <see cref="MOBObject"/>
 /// </summary>
 /// <param name="name">Name of this <see cref="MOBObject"/></param>
 /// <param name="type">Type of this <see cref="MOBObject"/></param>
 /// <param name="skinID">Skin ID of this <see cref="MOBObject"/></param>
 /// <param name="ignoreCollisionOnPlacement">Collision flag of this <see cref="MOBObject"/></param>
 /// <param name="position">Position of this <see cref="MOBObject"/></param>
 /// <param name="rotation">Scale of this <see cref="MOBObject"/></param>
 /// <param name="scale">Scale of this <see cref="MOBObject"/></param>
 /// <param name="boundingBox">Bounding Box of this <see cref="MOBObject"/></param>
 public MOBObject(string name, MOBObjectType type, uint skinID, bool ignoreCollisionOnPlacement, Vector3 position, Vector3 rotation, Vector3 scale, R3DBoundingBox boundingBox)
 {
     this.Name   = name;
     this.Type   = type;
     this.SkinID = skinID;
     this.IgnoreCollisionOnPlacement = ignoreCollisionOnPlacement;
     this.Position    = position;
     this.Rotation    = rotation;
     this.Scale       = scale;
     this.BoundingBox = boundingBox;
 }
示例#4
0
 public MapObjectRecord[] GetObjects(MOBObjectType type)
 {
     return(Array.FindAll(Objects, x => x.Type == type));
 }