(Feat) Bed Systeme

This commit is contained in:
2026-07-08 18:08:34 +02:00
parent 78fd2d534a
commit ebb7ff5713
13 changed files with 344 additions and 55 deletions
@@ -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)
{