Skip to main content

TeleporterObject

class ThaumielMapEditor.API.Blocks.ServerObjects

Overview​

Properties​

NameTypeAccessDescription
AllowedRolesList<RoleTypeId>get setGets or sets the PlayerRoles.RoleTypeIds allowed for this ThaumielMapEditor.API.Blocks.ServerObjects.TeleporterObject instance
CoolDownfloatget setGets or sets the cooldown time for this ThaumielMapEditor.API.Blocks.ServerObjects.TeleporterObject instance
FlagsTeleporterFlagsget setGets the ThaumielMapEditor.API.Enums.TeleporterFlags of this ThaumielMapEditor.API.Blocks.ServerObjects.TeleporterObject instance
IdGuidgetGets the Id for this ThaumielMapEditor.API.Blocks.ServerObjects.TeleporterObject instance
ObjectTypeObjectTypeget setGets or sets the type of the object represented by this instance.
PerPlayerCooldownboolget setGets or sets whether this ThaumielMapEditor.API.Blocks.ServerObjects.TeleporterObject instance uses perplayer cooldowns or global cooldowns.
TargetsList<Guid>get setGets or sets the Id to teleport to for this ThaumielMapEditor.API.Blocks.ServerObjects.TeleporterObject instance
TeleporterHandlerTeleporterHandlergetNo description

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 allowed for this ThaumielMapEditor.API.Blocks.ServerObjects.TeleporterObject instance


CoolDown​

Type: float Access: get set

Gets or sets the cooldown time for this ThaumielMapEditor.API.Blocks.ServerObjects.TeleporterObject instance


Flags​

Type: TeleporterFlags Access: get set

Gets the ThaumielMapEditor.API.Enums.TeleporterFlags of this ThaumielMapEditor.API.Blocks.ServerObjects.TeleporterObject instance


Id​

Type: Guid Access: get

Gets the Id for this ThaumielMapEditor.API.Blocks.ServerObjects.TeleporterObject instance


ObjectType​

Type: ObjectType Access: get set

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


PerPlayerCooldown​

Type: bool Access: get set

Gets or sets whether this ThaumielMapEditor.API.Blocks.ServerObjects.TeleporterObject instance uses perplayer cooldowns or global cooldowns.


Targets​

Type: List<Guid> Access: get set

Gets or sets the Id to teleport to for this ThaumielMapEditor.API.Blocks.ServerObjects.TeleporterObject instance


TeleporterHandler​

Type: TeleporterHandler Access: get


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