Table of Contents

Class CauseGroup

Namespace
Uncreated.Warfare.Deaths
Assembly
Uncreated.Warfare.dll

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

cause EDeathCause

CauseGroup(EDeathCause, DeathTranslation)

public CauseGroup(EDeathCause cause, DeathTranslation translation)

Parameters

cause EDeathCause
translation DeathTranslation

CauseGroup(EDeathCause, DeathTranslation[])

public CauseGroup(EDeathCause cause, DeathTranslation[] translations)

Parameters

cause EDeathCause
translations DeathTranslation[]

Fields

Cause

public EDeathCause? Cause

Field Value

EDeathCause?

CustomKey

public string? CustomKey

Field Value

string

ItemCause

public QuestParameterValue<Guid>? ItemCause

Field Value

QuestParameterValue<Guid>

Translations

public DeathTranslation[]? Translations

Field Value

DeathTranslation[]

VehicleCause

public QuestParameterValue<Guid>? VehicleCause

Field Value

QuestParameterValue<Guid>

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

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Equals(CauseGroup)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(CauseGroup other)

Parameters

other CauseGroup

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

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

reader Utf8JsonReader

WriteJson(Utf8JsonWriter)

public void WriteJson(Utf8JsonWriter writer)

Parameters

writer Utf8JsonWriter