PlayerSpawnPoint
ThaumielMapEditor.API.Blocks.ServerObjects
Overviewβ
Propertiesβ
| Name | Type | Access | Description |
|---|---|---|---|
AllowedRoles | List<RoleTypeId> | get set | The collection that defines the list of PlayerRoles.RoleTypeIds allowed to spawn here. |
Chance | float | get set | The percent chance of spawning here. (0 - 100) |
Disable | DisableFlags | get set | The flags that specify if this will be disabled. |
Disabled | bool | get set | No description |
Instances | List<PlayerSpawnPoint> | get | No description |
ObjectType | ObjectType | get | Gets or sets the type of the object represented by this instance. |
Fieldsβ
| Name | Type | Description |
|---|---|---|
Schematic | SchematicData | The ThaumielMapEditor.API.Data.SchematicData this `ThaumielMapEditor.API.Block⦠|
Methodsβ
| Signature | Returns | Description |
|---|---|---|
DestroyObject(SchematicData) | void | Destroys the associated networked object and removes it from the specified schem⦠|
HasFlagFast(DisableFlags) | bool | No description |
SpawnObject(SchematicData, SerializableObject) | void | Spawns 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β
public void DestroyObject(SchematicData schematic)
Destroys the associated networked object and removes it from the specified schematic's collection of spawned server objects.
Parametersβ
| Name | Type | Description |
|---|---|---|
schematic | SchematicData |
HasFlagFastβ
public bool HasFlagFast(DisableFlags flag)
Parametersβ
| Name | Type | Description |
|---|---|---|
flag | DisableFlags |
Returnsβ
bool
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 |