Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="libtr.TR4.RoomLight"/> struct.
 /// </summary>
 /// <param name="x">The x coordinate.</param>
 /// <param name="y">The y coordinate.</param>
 /// <param name="z">The z coordinate.</param>
 /// <param name="color">The light color.</param>
 /// <param name="type">The light type.</param>
 /// <param name="intensity">The light intensity.</param>
 /// <param name="_in">The hotspot.</param>
 /// <param name="_out">The falloff.</param>
 /// <param name="length">The length.</param>
 /// <param name="cutoff">The cutoff.</param>
 /// <param name="dx">Target X position.</param>
 /// <param name="dy">Target Y position.</param>
 /// <param name="dz">Target Z position.</param>
 /// <param name="unknown">Unknown.</param>
 public RoomLight(
     Int32 x, Int32 y, Int32 z,
     TR1.Color color, RoomLightType type, Byte intensity,
     Single _in, Single _out, Single length, Single cutoff,
     Single dx, Single dy, Single dz, Byte unknown = 0xFF) : this(
         x, y, z, color, (Byte)type, intensity,
         _in, _out, length, cutoff, dx, dy, dz, unknown)
 {
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="libtr.TR4.RoomLight"/> struct.
 /// </summary>
 /// <param name="x">The x coordinate.</param>
 /// <param name="y">The y coordinate.</param>
 /// <param name="z">The z coordinate.</param>
 /// <param name="color">The light color.</param>
 /// <param name="type">The light type.</param>
 /// <param name="intensity">The light intensity.</param>
 /// <param name="_in">The hotspot.</param>
 /// <param name="_out">The falloff.</param>
 /// <param name="length">The length.</param>
 /// <param name="cutoff">The cutoff.</param>
 /// <param name="dx">Target X position.</param>
 /// <param name="dy">Target Y position.</param>
 /// <param name="dz">Target Z position.</param>
 /// <param name="unknown">Unknown.</param>
 public RoomLight(
     Int32 x, Int32 y, Int32 z,
     TR1.Color color, Byte type, Byte intensity,
     Single _in, Single _out, Single length, Single cutoff,
     Single dx, Single dy, Single dz, Byte unknown = 0xFF) : this()
 {
     X            = x;
     Y            = y;
     Z            = z;
     Color        = color;
     RawLightType = type;
     Intensity    = intensity;
     In           = _in;
     Out          = _out;
     Length       = length;
     Cutoff       = cutoff;
     Dx           = dx;
     Dy           = dy;
     Dz           = dz;
     Unknown      = unknown;
 }
Exemple #3
0
		/// <summary>
		/// Initializes a new instance of the <see cref="libtr.TR4.RoomLight"/> struct.
		/// </summary>
		/// <param name="x">The x coordinate.</param>
		/// <param name="y">The y coordinate.</param>
		/// <param name="z">The z coordinate.</param>
		/// <param name="color">The light color.</param>
		/// <param name="type">The light type.</param>
		/// <param name="intensity">The light intensity.</param>
		/// <param name="_in">The hotspot.</param>
		/// <param name="_out">The falloff.</param>
		/// <param name="length">The length.</param>
		/// <param name="cutoff">The cutoff.</param>
		/// <param name="dx">Target X position.</param>
		/// <param name="dy">Target Y position.</param>
		/// <param name="dz">Target Z position.</param>
		/// <param name="unknown">Unknown.</param>
		public RoomLight (
			Int32 x, Int32 y, Int32 z,
			TR1.Color color, Byte type, Byte intensity,
			Single _in, Single _out, Single length, Single cutoff,
			Single dx, Single dy, Single dz, Byte unknown = 0xFF) : this () {
			X = x;
			Y = y;
			Z = z;
			Color = color;
			RawLightType = type;
			Intensity = intensity;
			In = _in;
			Out = _out;
			Length = length;
			Cutoff = cutoff;
			Dx = dx;
			Dy = dy;
			Dz = dz;
			Unknown = unknown;
		}