Struct StoryEventArgs
- Namespace
- SkyrimForge.Events
- Assembly
- SkyrimForge.dll
Arguments for OnStoryEvent.
public readonly struct StoryEventArgs : IEquatable<StoryEventArgs>
- Implements
- Inherited Members
Constructors
StoryEventArgs(string, string, IReadOnlyList<StoryEventValue>)
Arguments for OnStoryEvent.
public StoryEventArgs(string Signature, string Name, IReadOnlyList<StoryEventValue> Values)
Parameters
SignaturestringThe four characters the game registers the kind under, such as "CRFT" for crafting and "KILL" for a killing.
NamestringThe name the game gives the kind, such as "Craft Item".
ValuesIReadOnlyList<StoryEventValue>One entry per value the kind declares, in the order it declares them.
Properties
Name
The name the game gives the kind, such as "Craft Item".
public string Name { get; init; }
Property Value
Signature
The four characters the game registers the kind under, such as "CRFT" for crafting and "KILL" for a killing.
public string Signature { get; init; }
Property Value
Values
One entry per value the kind declares, in the order it declares them.
public IReadOnlyList<StoryEventValue> Values { get; init; }
Property Value
Methods
Deconstruct(out string, out string, out IReadOnlyList<StoryEventValue>)
public void Deconstruct(out string Signature, out string Name, out IReadOnlyList<StoryEventValue> Values)
Parameters
SignaturestringNamestringValuesIReadOnlyList<StoryEventValue>
Equals(StoryEventArgs)
public bool Equals(StoryEventArgs other)
Parameters
otherStoryEventArgs
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
GetValue(string)
Gets the first value named name.
public StoryEventValue GetValue(string name)
Parameters
namestring
Returns
Exceptions
- ArgumentException
The kind declares no value named
name.
ToString()
public override string ToString()
Returns
Operators
operator ==(StoryEventArgs, StoryEventArgs)
public static bool operator ==(StoryEventArgs left, StoryEventArgs right)
Parameters
leftStoryEventArgsrightStoryEventArgs
Returns
operator !=(StoryEventArgs, StoryEventArgs)
public static bool operator !=(StoryEventArgs left, StoryEventArgs right)
Parameters
leftStoryEventArgsrightStoryEventArgs