public interface IPlayerPlacementManagerProvides host-safe, same-planet placement for the local player.
Members
HasReturnPointGets whether this mod currently has a valid candidate return point.propertyTeleportAsyncMoves the local host player to finite coordinates on the currently loaded planet and records the origin as this mod's return point.methodReturnAsyncReturns the local host player to this mod's previous placement point. A successful return stores the origin as the next return point, so repeated calls can move back and forth.methodClearReturnPointClears this mod's in-memory return point.methodHasReturnPoint
propertybool HasReturnPointGets whether this mod currently has a valid candidate return point.
The point is revalidated against the live player and planet when
ReturnAsync is called.TeleportAsync
methodTask<PlayerPlacementResult> TeleportAsync(WorldPosition destination)Moves the local host player to finite coordinates on the currently loaded planet and records the origin as this mod's return point.
ReturnAsync
methodTask<PlayerPlacementResult> ReturnAsync()Returns the local host player to this mod's previous placement point. A successful return stores the origin as the next return point, so repeated calls can move back and forth.
ClearReturnPoint
methodvoid ClearReturnPoint()Clears this mod's in-memory return point.