Class CauseGroup
Represents a group of translations linked to a single SDG.Unturned.EDeathCause, or a specific item, vehicle, or custom message key.
[CannotApplyEqualityOperator]
public class CauseGroup : IEquatable<CauseGroup>, ICloneable
- Inheritance
-
CauseGroup
- Implements
- Inherited Members
Constructors
CauseGroup()
public CauseGroup()
CauseGroup(EDeathCause)
public CauseGroup(EDeathCause cause)
Parameters
causeEDeathCause
CauseGroup(EDeathCause, DeathTranslation)
public CauseGroup(EDeathCause cause, DeathTranslation translation)
Parameters
causeEDeathCausetranslationDeathTranslation
CauseGroup(EDeathCause, DeathTranslation[])
public CauseGroup(EDeathCause cause, DeathTranslation[] translations)
Parameters
causeEDeathCausetranslationsDeathTranslation[]
Fields
Cause
public EDeathCause? Cause
Field Value
- EDeathCause?
CustomKey
public string? CustomKey
Field Value
ItemCause
public QuestParameterValue<Guid>? ItemCause
Field Value
Translations
public DeathTranslation[]? Translations
Field Value
VehicleCause
public QuestParameterValue<Guid>? VehicleCause
Field Value
Methods
Clone()
Creates a new object that is a copy of the current instance.
public object Clone()
Returns
- object
A new object that is a copy of this instance.
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
Equals(CauseGroup)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(CauseGroup other)
Parameters
otherCauseGroupAn object to compare with this object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
ReadJson(ref Utf8JsonReader)
public void ReadJson(ref Utf8JsonReader reader)
Parameters
readerUtf8JsonReader
WriteJson(Utf8JsonWriter)
public void WriteJson(Utf8JsonWriter writer)
Parameters
writerUtf8JsonWriter