Table of Contents

Class SmVert

Namespace
WoWLib.Formats.ADT.Chunks
Assembly
WoWLib.dll

The magma/slime reading of a legacy liquid vertex (MCLQ): u16 texture coordinates s, t and the shared height. See SLVert.as_magma().

public class SmVert : IDisposable
Inheritance
SmVert
Implements
Inherited Members

Constructors

SmVert()

public SmVert()

SmVert(ushort, ushort, float)

public SmVert(ushort s, ushort t, float height)

Parameters

s ushort
t ushort
height float

SmVert(SmVert)

Copy-construct: a deep copy of other (the C++ copy constructor).

public SmVert(SmVert other)

Parameters

other SmVert

Properties

Height

Liquid surface height (shared with the water reading).

public float Height { get; set; }

Property Value

float

S

Texture coordinate s.

public ushort S { get; set; }

Property Value

ushort

T

Texture coordinate t.

public ushort T { get; set; }

Property Value

ushort

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

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Reference-identity hash (the C++ type has no hash to mirror).

public override int GetHashCode()

Returns

int

Operators

operator ==(SmVert?, SmVert?)

public static bool operator ==(SmVert? l, SmVert? r)

Parameters

l SmVert
r SmVert

Returns

bool

operator !=(SmVert?, SmVert?)

public static bool operator !=(SmVert? l, SmVert? r)

Parameters

l SmVert
r SmVert

Returns

bool