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
TargetObjectReference?CauseObjectReference?SourceFormId<Form>?ProjectileFormId<Form>?FlagsTESHitEvent.Flag
Properties
Cause
public ObjectReference? Cause { get; init; }
Property Value
Flags
public TESHitEvent.Flag Flags { get; init; }
Property Value
Projectile
public FormId<Form>? Projectile { get; init; }
Property Value
Source
public FormId<Form>? Source { get; init; }
Property Value
Target
public ObjectReference? Target { get; init; }
Property Value
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
TargetObjectReference?CauseObjectReference?SourceFormId<Form>?ProjectileFormId<Form>?FlagsTESHitEvent.Flag
Equals(HitEventArgs)
public bool Equals(HitEventArgs other)
Parameters
otherHitEventArgs
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(HitEventArgs, HitEventArgs)
public static bool operator ==(HitEventArgs left, HitEventArgs right)
Parameters
leftHitEventArgsrightHitEventArgs
Returns
operator !=(HitEventArgs, HitEventArgs)
public static bool operator !=(HitEventArgs left, HitEventArgs right)
Parameters
leftHitEventArgsrightHitEventArgs