Skip to main content

IPlayerRespawnPositionProvider

An interface in Root.Township, ATT.Respawn.

Gives the position a player respawns at. Implemented by RespawnSystem (shrine-based) and DefaultPlayerRespawnPositionProvider (the scene's respawn point).

Methods​

MemberWhat it is
Vector3 GetRespawnPosition(IPlayer player, out bool isDefaultRespawn)Returns where the player respawns and whether that is the default (global) respawn rather than a powered shrine.

Used in​

Members of other types that take, return or hold a IPlayerRespawnPositionProvider: