Skip to main content

WaypointObject

class ThaumielMapEditor.API.Blocks.ServerObjects

Overview​

Properties​

NameTypeAccessDescription
BaseWaypointToygetReference to the instantiated AdminToys.WaypointToy on the server.
BoundsSizeVector3get setSize of the waypoint bounds as a UnityEngine.Vector3 Setting this property updates the underlying AdminToys.WaypointToy.BoundsSize when the toy instance is available.
ObjectTypeObjectTypeget setGets or sets the type of the object represented by this instance.
Priorityfloatget setPriority value for the waypoint. Higher values can be used to influence ordering or selection logic that consumes waypoint priorities. Setting this property updates the underlying AdminToys.WaypointToy.Priority when the toy instance is available.
VisualizeBoundsboolget setWhether the waypoint's bounds are visualized in the editor/runtime. Setting this property updates the underlying AdminToys.WaypointToy.VisualizeBounds when the toy instance is available.
WaypointIdbytegetIdentifier assigned to this waypoint instance.

Methods​

SignatureReturnsDescription
ParseValues(SerializableObject)voidParses values from a ThaumielMapEditor.API.Serialization.SerializableObject an…
SpawnObject(SchematicData, SerializableObject)voidSpawns the specified ThaumielMapEditor.API.Blocks.ServerObject into the server…
SpawnObject(SchematicData)voidNo description

Properties​

Base​

Type: WaypointToy Access: get

Reference to the instantiated AdminToys.WaypointToy on the server.


BoundsSize​

Type: Vector3 Access: get set

Size of the waypoint bounds as a UnityEngine.Vector3 Setting this property updates the underlying AdminToys.WaypointToy.BoundsSize when the toy instance is available.


ObjectType​

Type: ObjectType Access: get set

Gets or sets the type of the object represented by this instance.


Priority​

Type: float Access: get set

Priority value for the waypoint. Higher values can be used to influence ordering or selection logic that consumes waypoint priorities. Setting this property updates the underlying AdminToys.WaypointToy.Priority when the toy instance is available.


VisualizeBounds​

Type: bool Access: get set

Whether the waypoint's bounds are visualized in the editor/runtime. Setting this property updates the underlying AdminToys.WaypointToy.VisualizeBounds when the toy instance is available.


WaypointId​

Type: byte Access: get

Identifier assigned to this waypoint instance.


Methods​

ParseValues​

ParseValues
public void ParseValues(SerializableObject serializable)

Parses values from a ThaumielMapEditor.API.Serialization.SerializableObject and applies them to this ThaumielMapEditor.API.Blocks.ServerObjects.WaypointObject instance.

Parameters​

NameTypeDescription
serializableSerializableObjectThe serialized object containing values to parse.

SpawnObject​

SpawnObject
public void SpawnObject(
SchematicData schematic,
SerializableObject serializable
)

Spawns the specified ThaumielMapEditor.API.Blocks.ServerObject into the server and adds it to the provided ThaumielMapEditor.API.Data.SchematicData's ThaumielMapEditor.API.Data.SchematicData.SpawnedServerObjects list.

Parameters​

NameTypeDescription
schematicSchematicData
serializableSerializableObject

SpawnObject​

SpawnObject
public void SpawnObject(SchematicData schematic)

Parameters​

NameTypeDescription
schematicSchematicData