WorkstationObject
ThaumielMapEditor.API.Blocks.ServerObjects
Overviewβ
Propertiesβ
| Name | Type | Access | Description |
|---|---|---|---|
AllowedRoles | List<RoleTypeId> | get set | Gets or sets the PlayerRoles.RoleTypeIds that are allowed to use this ThaumielMapEditor.API.Blocks.ServerObjects.WorkstationObject instance. |
AllowInteractions | bool | get set | Gets or sets whether players can use this ThaumielMapEditor.API.Blocks.ServerObjects.WorkstationObject instance. |
Base | WorkstationController | get | The instantiated InventorySystem.Items.Firearms.Attachments.WorkstationController that backs this server object. It will be null until ThaumielMapEditor.API.Blocks.ServerObjects.WorkstationObject.SpawnObject(ThaumielMapEditor.API.Data.SchematicData,ThaumielMapEditor.API.Serialization.SerializableObject) successfully instantiates the prefab. |
ObjectType | ObjectType | get set | Gets or sets the type of the object represented by this instance. |
Methodsβ
| Signature | Returns | Description |
|---|---|---|
ParseValues(SerializableObject) | void | No description |
SpawnObject(SchematicData, SerializableObject) | void | Spawns the specified ThaumielMapEditor.API.Blocks.ServerObject into the server⦠|
Propertiesβ
AllowedRolesβ
Type: List<RoleTypeId>βAccess: get set
Gets or sets the PlayerRoles.RoleTypeIds that are allowed to use this ThaumielMapEditor.API.Blocks.ServerObjects.WorkstationObject instance.
AllowInteractionsβ
Type: boolβAccess: get set
Gets or sets whether players can use this ThaumielMapEditor.API.Blocks.ServerObjects.WorkstationObject instance.
Baseβ
Type: WorkstationControllerβAccess: get
The instantiated InventorySystem.Items.Firearms.Attachments.WorkstationController that backs this server object. It will be null until ThaumielMapEditor.API.Blocks.ServerObjects.WorkstationObject.SpawnObject(ThaumielMapEditor.API.Data.SchematicData,ThaumielMapEditor.API.Serialization.SerializableObject) successfully instantiates the prefab.
ObjectTypeβ
Type: ObjectTypeβAccess: get set
Gets or sets the type of the object represented by this instance.
Methodsβ
ParseValuesβ
public void ParseValues(SerializableObject serializable)
Parametersβ
| Name | Type | Description |
|---|---|---|
serializable | SerializableObject |
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 |