WaypointObject
ThaumielMapEditor.API.Blocks.ServerObjects
Overviewβ
Propertiesβ
| Name | Type | Access | Description |
|---|---|---|---|
Base | WaypointToy | get | Reference to the instantiated AdminToys.WaypointToy on the server. |
BoundsSize | Vector3 | 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 | ObjectType | get set | Gets or sets the type of the object represented by this instance. |
Priority | float | 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 | bool | 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 | byte | get | Identifier assigned to this waypoint instance. |
Methodsβ
| Signature | Returns | Description |
|---|---|---|
ParseValues(SerializableObject) | void | Parses values from a ThaumielMapEditor.API.Serialization.SerializableObject an⦠|
SpawnObject(SchematicData, SerializableObject) | void | Spawns the specified ThaumielMapEditor.API.Blocks.ServerObject into the server⦠|
SpawnObject(SchematicData) | void | No 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β
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β
| Name | Type | Description |
|---|---|---|
serializable | SerializableObject | The serialized object containing values to parse. |
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β
| Name | Type | Description |
|---|---|---|
schematic | SchematicData | |
serializable | SerializableObject |
SpawnObjectβ
public void SpawnObject(SchematicData schematic)
Parametersβ
| Name | Type | Description |
|---|---|---|
schematic | SchematicData |