ClutterObject
ThaumielMapEditor.API.Blocks.ServerObjects
Overviewβ
Propertiesβ
| Name | Type | Access | Description |
|---|---|---|---|
Base | SpawnableClutterConnector | get | Gets the MapGeneration.RoomConnectors.SpawnableClutterConnector component attached to the ThaumielMapEditor.API.Blocks.ServerObjects.ClutterObject.ClutterGameObject. |
ClutterGameObject | GameObject | get | Gets the underlying UnityEngine.GameObject of this clutter object. |
ObjectType | ObjectType | get set | No description |
Type | ClutterType | get | Gets the ThaumielMapEditor.API.Enums.ClutterType of this clutter object. |
Methodsβ
| Signature | Returns | Description |
|---|---|---|
GetClutterPrefab(ClutterType) | GameObject | Gets the UnityEngine.GameObject prefab associated with the given `ThaumielMapE⦠|
SpawnObject(SchematicData, SerializableObject) | void | Spawns the specified ThaumielMapEditor.API.Blocks.ServerObject into the server⦠|
Propertiesβ
Baseβ
Type: SpawnableClutterConnectorβAccess: get
Gets the MapGeneration.RoomConnectors.SpawnableClutterConnector component attached to the ThaumielMapEditor.API.Blocks.ServerObjects.ClutterObject.ClutterGameObject.
This will be null if the clutter type does not have a MapGeneration.RoomConnectors.SpawnableClutterConnector component, such as ThaumielMapEditor.API.Enums.ClutterType.BrokenElectricalBox.
ClutterGameObjectβ
Type: GameObjectβAccess: get
Gets the underlying UnityEngine.GameObject of this clutter object.
ObjectTypeβ
Type: ObjectTypeβAccess: get set
Typeβ
Type: ClutterTypeβAccess: get
Gets the ThaumielMapEditor.API.Enums.ClutterType of this clutter object.
Methodsβ
GetClutterPrefabβ
public GameObject GetClutterPrefab(ClutterType type)
Gets the UnityEngine.GameObject prefab associated with the given ThaumielMapEditor.API.Enums.ClutterType."
Parametersβ
| Name | Type | Description |
|---|---|---|
type | ClutterType |
Returnsβ
GameObject β UnityEngine.GameObject
Exceptionsβ
System.ArgumentOutOfRangeException
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 |