Skip to main content

WorkstationObject

class ThaumielMapEditor.API.Blocks.ServerObjects

Overview​

Properties​

NameTypeAccessDescription
AllowedRolesList<RoleTypeId>get setGets or sets the PlayerRoles.RoleTypeIds that are allowed to use this ThaumielMapEditor.API.Blocks.ServerObjects.WorkstationObject instance.
AllowInteractionsboolget setGets or sets whether players can use this ThaumielMapEditor.API.Blocks.ServerObjects.WorkstationObject instance.
BaseWorkstationControllergetThe 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.
ObjectTypeObjectTypeget setGets or sets the type of the object represented by this instance.

Methods​

SignatureReturnsDescription
ParseValues(SerializableObject)voidNo description
SpawnObject(SchematicData, SerializableObject)voidSpawns 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​

ParseValues
public void ParseValues(SerializableObject serializable)

Parameters​

NameTypeDescription
serializableSerializableObject

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