This repository has been archived on 2025-06-18. You can view files and clone it, but cannot push or open issues or pull requests.
Files
skolavdf/phr/StickGame/Assets/FishNet/Runtime/Managing/Scened/Events/ClientPresenceChangeEventArgs.cs
2024-03-24 22:21:16 +01:00

34 lines
919 B
C#

using FishNet.Connection;
using UnityEngine.SceneManagement;
namespace FishNet.Managing.Scened
{
/// <summary>
/// Data container about a scene presence change for a client.
/// </summary>
public struct ClientPresenceChangeEventArgs
{
/// <summary>
/// Scene on the server which the client's presence has changed.
/// </summary>
public Scene Scene;
/// <summary>
/// Connection to client.
/// </summary>
public NetworkConnection Connection;
/// <summary>
/// True if the client was added to the scene, false is removed.
/// </summary>
public bool Added;
internal ClientPresenceChangeEventArgs(Scene scene, NetworkConnection conn, bool added)
{
Scene = scene;
Connection = conn;
Added = added;
}
}
}