Skip to main content

PlayerSpawnPoint

class ThaumielMapEditor.API.Blocks.ServerObjects

Overview​

Properties​

NameTypeAccessDescription
AllowedRolesList<RoleTypeId>get setThe collection that defines the list of PlayerRoles.RoleTypeIds allowed to spawn here.
Chancefloatget setThe percent chance of spawning here. (0 - 100)
DisableDisableFlagsget setThe flags that specify if this will be disabled.
Disabledboolget setNo description
InstancesList<PlayerSpawnPoint>getNo description
ObjectTypeObjectTypegetGets or sets the type of the object represented by this instance.

Fields​

NameTypeDescription
SchematicSchematicDataThe ThaumielMapEditor.API.Data.SchematicData this `ThaumielMapEditor.API.Block…

Methods​

SignatureReturnsDescription
DestroyObject(SchematicData)voidDestroys the associated networked object and removes it from the specified schem…
HasFlagFast(DisableFlags)boolNo description
SpawnObject(SchematicData, SerializableObject)voidSpawns the specified ThaumielMapEditor.API.Blocks.ServerObject into the server…

Properties​

AllowedRoles​

Type: List<RoleTypeId> Access: get set

The collection that defines the list of PlayerRoles.RoleTypeIds allowed to spawn here.


Chance​

Type: float Access: get set

The percent chance of spawning here. (0 - 100)


Disable​

Type: DisableFlags Access: get set

The flags that specify if this will be disabled.


Disabled​

Type: bool Access: get set


Instances​

Type: List<PlayerSpawnPoint> Access: get


ObjectType​

Type: ObjectType Access: get

Gets or sets the type of the object represented by this instance.


Fields​

Schematic​

Type: SchematicData

The ThaumielMapEditor.API.Data.SchematicData this ThaumielMapEditor.API.Blocks.ServerObjects.PlayerSpawnPoint was spawned from.


Methods​

DestroyObject​

DestroyObject
public void DestroyObject(SchematicData schematic)

Destroys the associated networked object and removes it from the specified schematic's collection of spawned server objects.

Parameters​

NameTypeDescription
schematicSchematicData

HasFlagFast​

HasFlagFast
public bool HasFlagFast(DisableFlags flag)

Parameters​

NameTypeDescription
flagDisableFlags

Returns​

bool


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