Struct MagicItemEffectSummary
- Namespace
- SkyrimForge.Game
- Assembly
- SkyrimForge.Game.dll
The values the game derives from a magic item's effects.
public readonly struct MagicItemEffectSummary : IEquatable<MagicItemEffectSummary>
- Implements
- Inherited Members
Constructors
MagicItemEffectSummary(Effect?, int, Effect?, float, uint, bool, IReadOnlyList<Effect>)
The values the game derives from a magic item's effects.
public MagicItemEffectSummary(Effect? CostliestEffect, int MaxCost, Effect? LargestAreaEffect, float HighestArea, uint Flags, bool SummonsExtraLargeCreature, IReadOnlyList<Effect> ProjectileEffects)
Parameters
CostliestEffectEffect?The effect costing the most, or
nullwhere the item has none.MaxCostintThe cost of
CostliestEffect, or -1 where that isnull.LargestAreaEffectEffect?The effect covering the largest area, or
nullwhere none does.HighestAreafloatThe area of
LargestAreaEffect.FlagsuintThe flags of the game's MagicItemDataCollector, whose bits CommonLib names kSkipCostiest, kSkipProjectiles, kSkipArea, and kOnlyFirstEffect. The collector's constructor sets them, so they do not describe the effects. An ingredient has kOnlyFirstEffect, and any other item has none.
SummonsExtraLargeCreatureboolWhether an effect of the item summons a creature the game classes as extra large.
ProjectileEffectsIReadOnlyList<Effect>The effects the game counts as projectiles.
Properties
CostliestEffect
The effect costing the most, or null where the item has none.
public Effect? CostliestEffect { get; init; }
Property Value
Flags
The flags of the game's MagicItemDataCollector, whose bits CommonLib names kSkipCostiest, kSkipProjectiles, kSkipArea, and kOnlyFirstEffect. The collector's constructor sets them, so they do not describe the effects. An ingredient has kOnlyFirstEffect, and any other item has none.
public uint Flags { get; init; }
Property Value
HighestArea
The area of LargestAreaEffect.
public float HighestArea { get; init; }
Property Value
LargestAreaEffect
The effect covering the largest area, or null where none does.
public Effect? LargestAreaEffect { get; init; }
Property Value
MaxCost
The cost of CostliestEffect, or -1 where that is null.
public int MaxCost { get; init; }
Property Value
ProjectileEffects
The effects the game counts as projectiles.
public IReadOnlyList<Effect> ProjectileEffects { get; init; }
Property Value
SummonsExtraLargeCreature
Whether an effect of the item summons a creature the game classes as extra large.
public bool SummonsExtraLargeCreature { get; init; }
Property Value
Methods
Deconstruct(out Effect?, out int, out Effect?, out float, out uint, out bool, out IReadOnlyList<Effect>)
public void Deconstruct(out Effect? CostliestEffect, out int MaxCost, out Effect? LargestAreaEffect, out float HighestArea, out uint Flags, out bool SummonsExtraLargeCreature, out IReadOnlyList<Effect> ProjectileEffects)
Parameters
CostliestEffectEffect?MaxCostintLargestAreaEffectEffect?HighestAreafloatFlagsuintSummonsExtraLargeCreatureboolProjectileEffectsIReadOnlyList<Effect>
Equals(MagicItemEffectSummary)
public bool Equals(MagicItemEffectSummary other)
Parameters
otherMagicItemEffectSummary
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 ==(MagicItemEffectSummary, MagicItemEffectSummary)
public static bool operator ==(MagicItemEffectSummary left, MagicItemEffectSummary right)
Parameters
leftMagicItemEffectSummaryrightMagicItemEffectSummary
Returns
operator !=(MagicItemEffectSummary, MagicItemEffectSummary)
public static bool operator !=(MagicItemEffectSummary left, MagicItemEffectSummary right)
Parameters
leftMagicItemEffectSummaryrightMagicItemEffectSummary