Table of Contents

Struct WorldEntitySnapshot

Namespace
AcDream.Plugin.Abstractions
Assembly
AcDream.Plugin.Abstractions.dll

Where one thing the client is drawing sits in the world, taken at the moment the client last published it. It is a copy, not a live handle: it does not change as the thing moves.

public readonly record struct WorldEntitySnapshot : IEquatable<WorldEntitySnapshot>
Implements
Inherited Members

Constructors

WorldEntitySnapshot(uint, uint, Vector3, Quaternion)

Where one thing the client is drawing sits in the world, taken at the moment the client last published it. It is a copy, not a live handle: it does not change as the thing moves.

public WorldEntitySnapshot(uint Id, uint SourceId, Vector3 Position, Quaternion Rotation)

Parameters

Id uint

The client's own id for this drawable thing, stable for as long as the client keeps it. This is not the server's object id.

SourceId uint

The id of the model the thing is built from, or 0 when the client has not resolved one.

Position Vector3

Where it stands, in world coordinates (metres).

Rotation Quaternion

Which way it faces, as an orientation.

Properties

Id

The client's own id for this drawable thing, stable for as long as the client keeps it. This is not the server's object id.

public uint Id { get; init; }

Property Value

uint

Position

Where it stands, in world coordinates (metres).

public Vector3 Position { get; init; }

Property Value

Vector3

Rotation

Which way it faces, as an orientation.

public Quaternion Rotation { get; init; }

Property Value

Quaternion

SourceId

The id of the model the thing is built from, or 0 when the client has not resolved one.

public uint SourceId { get; init; }

Property Value

uint