TextToyObject
ThaumielMapEditor.API.Blocks.ServerObjects
Overviewβ
Propertiesβ
| Name | Type | Access | Description |
|---|---|---|---|
Base | TextToy | get | The instantiated runtime AdminToys.TextToy associated with this server object. |
DisplaySize | Vector2 | get set | The display size (width, height) used by the AdminToys.TextToy when rendering text. |
ObjectType | ObjectType | get set | Gets or sets the type of the object represented by this instance. |
Text | string | get set | The text format string used by the AdminToys.TextToy for rendering text. |
Methodsβ
| Signature | Returns | Description |
|---|---|---|
ParseValues(SerializableObject) | void | Parses values from the provided `ThaumielMapEditor.API.Serialization.Serializabl⦠|
SpawnObject(SchematicData, SerializableObject) | void | Spawns the specified ThaumielMapEditor.API.Blocks.ServerObject into the server⦠|
SpawnObject(SchematicData) | void | No description |
Propertiesβ
Baseβ
Type: TextToyβAccess: get
The instantiated runtime AdminToys.TextToy associated with this server object.
It will be null until ThaumielMapEditor.API.Blocks.ServerObjects.TextToyObject.SpawnObject(ThaumielMapEditor.API.Data.SchematicData,ThaumielMapEditor.API.Serialization.SerializableObject) successfully instantiates the prefab.
DisplaySizeβ
Type: Vector2βAccess: get set
The display size (width, height) used by the AdminToys.TextToy when rendering text.
Setting this property updates the underlying ThaumielMapEditor.API.Blocks.ServerObjects.TextToyObject.Base instance's DisplaySize if the runtime object has already been created.
ObjectTypeβ
Type: ObjectTypeβAccess: get set
Gets or sets the type of the object represented by this instance.
Textβ
Type: stringβAccess: get set
The text format string used by the AdminToys.TextToy for rendering text.
Setting this property updates the underlying ThaumielMapEditor.API.Blocks.ServerObjects.TextToyObject.Base instance's TextFormat if the runtime object has already been created.
Methodsβ
ParseValuesβ
public void ParseValues(SerializableObject serializable)
Parses values from the provided ThaumielMapEditor.API.Serialization.SerializableObject and applies them to this instance.
Parametersβ
| Name | Type | Description |
|---|---|---|
serializable | SerializableObject | The serialized object containing keys such as "TextFormat" and "DisplaySize". |
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 |