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
IduintThe 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.
SourceIduintThe id of the model the thing is built from, or 0 when the client has not resolved one.
PositionVector3Where it stands, in world coordinates (metres).
RotationQuaternionWhich 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
Position
Where it stands, in world coordinates (metres).
public Vector3 Position { get; init; }
Property Value
Rotation
Which way it faces, as an orientation.
public Quaternion Rotation { get; init; }
Property Value
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; }