Table of Contents

Struct ShotRecord

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

Constructors

ShotRecord()

public ShotRecord()

ShotRecord(ByteReader)

public ShotRecord(ByteReader reader)

Parameters

reader ByteReader

ShotRecord(Guid, Guid, string?, string?, ERaycastInfoType, IModerationActor?, Guid?, string?, ELimb?, DateTimeOffset, Vector3, Vector3, Vector3?, bool, int, double)

public ShotRecord(Guid item, Guid ammo, string? itemName, string? ammoName, ERaycastInfoType hitType, IModerationActor? hitActor, Guid? hitAsset, string? hitAssetName, ELimb? limb, DateTimeOffset timestamp, Vector3 shootFromPoint, Vector3 shootFromRotation, Vector3? hitPoint, bool isProjectile, int damageDone, double distance)

Parameters

item Guid
ammo Guid
itemName string
ammoName string
hitType ERaycastInfoType
hitActor IModerationActor
hitAsset Guid?
hitAssetName string
limb ELimb?
timestamp DateTimeOffset
shootFromPoint Vector3
shootFromRotation Vector3
hitPoint Vector3?
isProjectile bool
damageDone int
distance double

Properties

Ammo

[JsonPropertyName("ammo")]
public Guid Ammo { get; }

Property Value

Guid

AmmoName

[JsonPropertyName("ammo_name")]
public string? AmmoName { get; }

Property Value

string

DamageDone

[JsonPropertyName("damage")]
public int DamageDone { get; }

Property Value

int

Distance

[JsonPropertyName("distance")]
public double Distance { get; }

Property Value

double

HitActor

[JsonPropertyName("hit_actor")]
[JsonConverter(typeof(ActorConverter))]
public IModerationActor? HitActor { get; }

Property Value

IModerationActor

HitAsset

[JsonPropertyName("hit_asset")]
public Guid? HitAsset { get; }

Property Value

Guid?

HitAssetName

[JsonPropertyName("hit_asset_name")]
public string? HitAssetName { get; }

Property Value

string

HitPoint

[JsonPropertyName("aim_hit")]
[JsonConverter(typeof(Vector3JsonConverter))]
public Vector3? HitPoint { get; }

Property Value

Vector3?

HitType

[JsonPropertyName("hit_type")]
[JsonConverter(typeof(JsonStringEnumConverter))]
public ERaycastInfoType HitType { get; }

Property Value

ERaycastInfoType

IsProjectile

[JsonPropertyName("is_projectile")]
public bool IsProjectile { get; }

Property Value

bool

Item

[JsonPropertyName("item")]
public Guid Item { get; }

Property Value

Guid

ItemName

[JsonPropertyName("item_name")]
public string? ItemName { get; }

Property Value

string

Limb

[JsonPropertyName("limb")]
[JsonConverter(typeof(JsonStringEnumConverter))]
public ELimb? Limb { get; }

Property Value

ELimb?

ShootFromPoint

[JsonPropertyName("aim_from_pos")]
[JsonConverter(typeof(Vector3JsonConverter))]
public Vector3 ShootFromPoint { get; }

Property Value

Vector3

ShootFromRotation

[JsonPropertyName("aim_from_rot")]
[JsonConverter(typeof(Vector3JsonConverter))]
public Vector3 ShootFromRotation { get; }

Property Value

Vector3

Timestamp

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

Property Value

DateTimeOffset

Methods

Write(ByteWriter)

public void Write(ByteWriter writer)

Parameters

writer ByteWriter