LocomotionController.TeleportArgument
A protected class in Root.Township, the global namespace. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.
Network argument for a teleport: target position, chunk, teleport mode and locomotion function.
Constructors
Fields
5 private and internal fields
| Member | What it is |
|---|
private Chunk chunk | Chunk of the target position. |
private int functionIndex | Backing value for Function. |
private bool isPositionWithinChunk | True if the position is inside the location chunk's buffer bounds, so it can be sent compactly. |
private int modeIndex | Backing value for Mode. |
private Vector3 position | Backing field for Position. |
Properties
| Member | What it is |
|---|
LocomotionFunction Function { get; } | The locomotion function that caused the move. |
TeleportMode Mode { get; } | The teleport mode. |
Vector3 Position { get; } | The target position. |
Methods
| Member | What it is |
|---|
void Serialize(Stream stream) | Writes or reads the argument; the position is sent relative to the chunk when it falls inside it. |
Used in
Members of other types that take, return or hold a TeleportArgument: