Class Teamkill
- Namespace
- Uncreated.Warfare.Moderation.Records
- Assembly
- Uncreated.Warfare.dll
[JsonConverter(typeof(ModerationEntryConverter))]
public class Teamkill : ModerationEntry, IModerationEntry
- Inheritance
-
Teamkill
- Implements
-
- Inherited Members
-
Fields
RoleTeamkilled
public const string RoleTeamkilled = "Teamkilled"
Field Value
- string
Properties
Cause
[JsonPropertyName("death_cause")]
[JsonConverter(typeof(JsonStringEnumConverter))]
public EDeathCause? Cause { get; set; }
Property Value
- EDeathCause?
Distance
[JsonPropertyName("distance")]
public double? Distance { get; set; }
Property Value
- double?
Item
[JsonPropertyName("item_guid")]
public Guid? Item { get; set; }
Property Value
- Guid?
ItemName
[JsonPropertyName("item_name")]
public string? ItemName { get; set; }
Property Value
- string
Limb
[JsonPropertyName("limb")]
[JsonConverter(typeof(JsonStringEnumConverter))]
public ELimb? Limb { get; set; }
Property Value
- ELimb?
Methods
public override Task AddExtraInfo(DatabaseInterface db, List<string> workingList, IFormatProvider formatter, CancellationToken token = default)
Parameters
db DatabaseInterface
workingList List<string>
formatter IFormatProvider
token CancellationToken
Returns
- Task
GetDisplayMessage()
public override string? GetDisplayMessage()
Returns
- string
GetDisplayName()
public override string GetDisplayName()
Returns
- string
GetIcon()
public override Guid? GetIcon()
Returns
- Guid?
ReadIntl(ByteReader, ushort)
protected override void ReadIntl(ByteReader reader, ushort version)
Parameters
reader ByteReader
version ushort
ReadProperty(ref Utf8JsonReader, string, JsonSerializerOptions)
public override bool ReadProperty(ref Utf8JsonReader reader, string propertyName, JsonSerializerOptions options)
Parameters
reader Utf8JsonReader
propertyName string
options JsonSerializerOptions
Returns
- bool
public override bool TryGetDisplayActor(out RelatedActor actor)
Parameters
actor RelatedActor
Returns
- bool
Write(Utf8JsonWriter, JsonSerializerOptions)
public override void Write(Utf8JsonWriter writer, JsonSerializerOptions options)
Parameters
writer Utf8JsonWriter
options JsonSerializerOptions
WriteIntl(ByteWriter)
protected override void WriteIntl(ByteWriter writer)
Parameters
writer ByteWriter