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; }
/// <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; }
public MapObjectRecord[] GetObjects(MOBObjectType type) { return(Array.FindAll(Objects, x => x.Type == type)); }