(Feat) Bed Systeme
This commit is contained in:
@@ -151,6 +151,7 @@ namespace Ashwild.Player
|
||||
public static event Action Died;
|
||||
public static event Action Respawned;
|
||||
public static event Action<bool> DeathChanged;
|
||||
public static event Action<Vector3, Quaternion> RespawnPointChanged; // the local player's respawn pose was reassigned (e.g. claimed a bed)
|
||||
|
||||
// ============================================================
|
||||
// Network / session events
|
||||
@@ -318,6 +319,16 @@ namespace Ashwild.Player
|
||||
DeathChanged?.Invoke(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reassigns the local player's respawn pose (e.g. after claiming a bed). Owner-side only;
|
||||
/// the pose is pure local state and is never networked — each client keeps its own.
|
||||
/// </summary>
|
||||
public static void RaiseRespawnPointChanged(Vector3 position, Quaternion rotation)
|
||||
{
|
||||
Log(nameof(RespawnPointChanged));
|
||||
RespawnPointChanged?.Invoke(position, rotation);
|
||||
}
|
||||
|
||||
public static void RaiseSessionStarting() { Log(nameof(SessionStarting)); SessionStarting?.Invoke(); }
|
||||
public static void RaiseSessionStarted(string code)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user