Table of Contents

Struct GrassType

Namespace
SkyrimForge.Game
Assembly
SkyrimForge.dll

A view over RE::GrassType. It stores only the address, so it is valid until the game frees the object. Its members are extensions.

public readonly struct GrassType : IEquatable<GrassType>
Implements
Inherited Members

Constructors

GrassType()

Reports a compile-time error, since a view created with new has no address.

[Obsolete("Creates a view with no address. Use GrassType.New(), which allocates one on the game's heap.", true)]
public GrassType()

Properties

Exists

Whether the view has an address. A view from default or passed by the game to a replaced function can have none.

public bool Exists { get; }

Property Value

bool

Methods

Equals(GrassType)

public bool Equals(GrassType other)

Parameters

other GrassType

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Operators

operator ==(GrassType, GrassType)

Whether both views are over one address.

public static bool operator ==(GrassType left, GrassType right)

Parameters

left GrassType
right GrassType

Returns

bool

operator !=(GrassType, GrassType)

Whether the views are over different addresses.

public static bool operator !=(GrassType left, GrassType right)

Parameters

left GrassType
right GrassType

Returns

bool