Class M2Camera
One model camera. Abstract over the client version; construct a concrete version with M2Camera.ForVersion / for_version.
public class M2Camera : IDisposable
- Inheritance
-
M2Camera
- Implements
- Derived
- Inherited Members
Constructors
M2Camera()
public M2Camera()
M2Camera(M2Camera)
Copy-construct: a deep copy of other (the C++ copy constructor).
public M2Camera(M2Camera other)
Parameters
otherM2Camera
Properties
FarClip
Far clip distance.
public float FarClip { get; set; }
Property Value
NearClip
Near clip distance.
public float NearClip { get; set; }
Property Value
PositionBase
Pivot point the position splines are relative to.
public C3Vector PositionBase { get; set; }
Property Value
Positions
Spline track moving the camera, one spline per segment.
public M2TrackSplineC3Vector Positions { get; set; }
Property Value
Roll
0 .. 2*pi.
public M2TrackSplineFloat Roll { get; set; }
Property Value
TargetPosition
Spline track moving the look-at target, one spline per segment.
public M2TrackSplineC3Vector TargetPosition { get; set; }
Property Value
TargetPositionBase
Pivot point the target splines are relative to.
public C3Vector TargetPositionBase { get; set; }
Property Value
Type
0 portrait, 1 character info, -1 flyby.
public uint Type { get; set; }
Property Value
Methods
Dispose()
Release the native object now. Optional: the finalizer releases it on
collection anyway - dispose (or using) when you want native memory back
promptly.
public virtual void Dispose()
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
ForVersion(ClientVersion)
A fresh M2Camera for an exact client version — the only axis that can name a Classic client, whose files follow the engine its build was cut on rather than its 1.15 / 4.4 version number.
public static M2Camera ForVersion(ClientVersion version)
Parameters
versionClientVersion
Returns
ForVersion(Expansion)
A fresh M2Camera for the given era, as the family base — the dynamic twin of the typed Era factories.
public static M2Camera ForVersion(Expansion era)
Parameters
eraExpansion
Returns
GetHashCode()
Reference-identity hash (the C++ type has no hash to mirror).
public override int GetHashCode()
Returns
Operators
operator ==(M2Camera?, M2Camera?)
public static bool operator ==(M2Camera? l, M2Camera? r)
Parameters
Returns
operator !=(M2Camera?, M2Camera?)
public static bool operator !=(M2Camera? l, M2Camera? r)