TeleporterHandler
ThaumielMapEditor.API.Components
Overviewβ
Propertiesβ
| Name | Type | Access | Description |
|---|---|---|---|
Teleporter | TeleporterObject | get | Gets the ThaumielMapEditor.API.Blocks.ServerObjects.TeleporterObject this handler is managing. |
Fieldsβ
| Name | Type | Description |
|---|---|---|
PlayerCooldowns | Dictionary<Player, float> | Tracks per-player cooldown expiry times. Each entry maps a `LabApi.Features.Wrap⦠|
Methodsβ
| Signature | Returns | Description |
|---|---|---|
ForcePlayerCooldown(Player, float) | void | Forces a minimum cooldown on a player regardless of teleporter settings, used to⦠|
HasFlagFast(TeleporterFlags) | bool | No description |
Init(TeleporterObject) | void | Initializes this ThaumielMapEditor.API.Components.TeleporterHandler instance w⦠|
Propertiesβ
Teleporterβ
Type: TeleporterObjectβAccess: get
Gets the ThaumielMapEditor.API.Blocks.ServerObjects.TeleporterObject this handler is managing.
Fieldsβ
PlayerCooldownsβ
Type: Dictionary<Player, float>
Tracks per-player cooldown expiry times. Each entry maps a LabApi.Features.Wrappers.Player to the UnityEngine.Time.time value at which their cooldown expires.
Methodsβ
ForcePlayerCooldownβ
ForcePlayerCooldown
public void ForcePlayerCooldown(
Player player,
float duration
)
Forces a minimum cooldown on a player regardless of teleporter settings, used to prevent immediate return teleportation.
Parametersβ
| Name | Type | Description |
|---|---|---|
player | Player | |
duration | float |
HasFlagFastβ
HasFlagFast
public bool HasFlagFast(TeleporterFlags flag)
Parametersβ
| Name | Type | Description |
|---|---|---|
flag | TeleporterFlags |
Returnsβ
bool
Initβ
Init
public void Init(TeleporterObject teleporter)
Initializes this ThaumielMapEditor.API.Components.TeleporterHandler instance with the given teleporter.
Parametersβ
| Name | Type | Description |
|---|---|---|
teleporter | TeleporterObject | The ThaumielMapEditor.API.Blocks.ServerObjects.TeleporterObject that defines this teleporter's configuration. |