Table of Contents

Struct StructureDamageRecord

Namespace
Uncreated.Warfare.Moderation.Reports
Assembly
Uncreated.Warfare.dll
public struct StructureDamageRecord
Inherited Members

Constructors

StructureDamageRecord()

public StructureDamageRecord()

StructureDamageRecord(ByteReader)

public StructureDamageRecord(ByteReader reader)

Parameters

reader ByteReader

StructureDamageRecord(Guid, string, ulong, EDamageOrigin, bool, uint, int, bool, DateTimeOffset)

public StructureDamageRecord(Guid structure, string name, ulong owner, EDamageOrigin origin, bool isStructure, uint id, int damage, bool destroyed, DateTimeOffset timestamp)

Parameters

structure Guid
name string
owner ulong
origin EDamageOrigin
isStructure bool
id uint
damage int
destroyed bool
timestamp DateTimeOffset

Properties

Damage

[JsonPropertyName("damage")]
public int Damage { readonly get; set; }

Property Value

int

Destroyed

[JsonPropertyName("destroyed")]
public bool Destroyed { readonly get; set; }

Property Value

bool

ID

[JsonPropertyName("id")]
public uint ID { readonly get; set; }

Property Value

uint

IsStructure

[JsonPropertyName("type")]
[JsonConverter(typeof(JsonStringEnumConverter))]
public bool IsStructure { readonly get; set; }

Property Value

bool

Name

[JsonPropertyName("name")]
public string Name { readonly get; set; }

Property Value

string

Origin

[JsonPropertyName("origin")]
[JsonConverter(typeof(JsonStringEnumConverter))]
public EDamageOrigin Origin { readonly get; set; }

Property Value

EDamageOrigin

Owner

[JsonPropertyName("owner")]
public ulong Owner { readonly get; set; }

Property Value

ulong

Structure

[JsonPropertyName("structure")]
public Guid Structure { readonly get; set; }

Property Value

Guid

Timestamp

[JsonPropertyName("timestamp")]
public DateTimeOffset Timestamp { readonly get; set; }

Property Value

DateTimeOffset

Methods

Write(ByteWriter)

public void Write(ByteWriter writer)

Parameters

writer ByteWriter