Table of Contents

Struct HitEventArgs

Namespace
SkyrimForge
Assembly
SkyrimForge.dll

Arguments for OnHit, the game's TESHitEvent.

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

Constructors

HitEventArgs(ObjectReference?, ObjectReference?, FormId<Form>?, FormId<Form>?, Flag)

Arguments for OnHit, the game's TESHitEvent.

public HitEventArgs(ObjectReference? Target, ObjectReference? Cause, FormId<Form>? Source, FormId<Form>? Projectile, TESHitEvent.Flag Flags)

Parameters

Target ObjectReference?
Cause ObjectReference?
Source FormId<Form>?
Projectile FormId<Form>?
Flags TESHitEvent.Flag

Properties

Cause

public ObjectReference? Cause { get; init; }

Property Value

ObjectReference?

Flags

public TESHitEvent.Flag Flags { get; init; }

Property Value

TESHitEvent.Flag

Projectile

public FormId<Form>? Projectile { get; init; }

Property Value

FormId<Form>?

Source

public FormId<Form>? Source { get; init; }

Property Value

FormId<Form>?

Target

public ObjectReference? Target { get; init; }

Property Value

ObjectReference?

Methods

Deconstruct(out ObjectReference?, out ObjectReference?, out FormId<Form>?, out FormId<Form>?, out Flag)

public void Deconstruct(out ObjectReference? Target, out ObjectReference? Cause, out FormId<Form>? Source, out FormId<Form>? Projectile, out TESHitEvent.Flag Flags)

Parameters

Target ObjectReference?
Cause ObjectReference?
Source FormId<Form>?
Projectile FormId<Form>?
Flags TESHitEvent.Flag

Equals(HitEventArgs)

public bool Equals(HitEventArgs other)

Parameters

other HitEventArgs

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(HitEventArgs, HitEventArgs)

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

Parameters

left HitEventArgs
right HitEventArgs

Returns

bool

operator !=(HitEventArgs, HitEventArgs)

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

Parameters

left HitEventArgs
right HitEventArgs

Returns

bool