Class UnityGameSessionService
Inheritance
UnityGameSessionService
Assembly: Serenity.UnityGameSession.Infrastructure.dll
Syntax
public class UnityGameSessionService : MonoBehaviour, IGameSessionService, IService, IFoundationSettings
Constructors
UnityGameSessionService()
Declaration
public UnityGameSessionService()
Properties
ElapsedTime
Declaration
public float ElapsedTime { get; }
Property Value
Guid
Declaration
public string Guid { get; set; }
Property Value
Id
Declaration
public string Id { get; set; }
Property Value
LogService
Declaration
public ILogService LogService { get; set; }
Property Value
SessionId
Declaration
public GameSessionId SessionId { get; }
Property Value
Status
Declaration
public GameSessionStatus Status { get; }
Property Value
Methods
Complete()
Declaration
Declaration
public void ConfigureTimer(ITimer timer)
Parameters
| Type |
Name |
Description |
| ITimer |
timer |
|
GameOver()
Declaration
GetSnapshot()
Declaration
public GameSessionSnapshot GetSnapshot()
Returns
InitializeService(ILogService)
Initializes the service with required dependencies.
Declaration
public void InitializeService(ILogService logService)
Parameters
| Type |
Name |
Description |
| ILogService |
logService |
The logging service for diagnostic output.
|
Pause()
Declaration
Resume()
Declaration
StartSession(GameSessionId)
Declaration
public void StartSession(GameSessionId sessionId)
Parameters
Tick()
Declaration
Implements