Class UnityGameRailService
Inheritance
UnityGameRailService
Assembly: Serenity.UnityGameRail.Infrastructure.dll
Syntax
public class UnityGameRailService : MonoBehaviour, IGameRailService, IService, IFoundationSettings
Constructors
UnityGameRailService()
Declaration
public UnityGameRailService()
Properties
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
Methods
AdvanceProgress(RailId, float)
Declaration
public void AdvanceProgress(RailId id, float delta)
Parameters
ConfigureRail(RailPathConfig)
Declaration
public void ConfigureRail(RailPathConfig config)
Parameters
GetPath(RailId)
Returns the registered RailPath for the given id, or null if not found.
Declaration
public RailPath GetPath(RailId id)
Parameters
| Type |
Name |
Description |
| RailId |
id |
|
Returns
GetProgress(RailId)
Declaration
public RailProgress GetProgress(RailId id)
Parameters
| Type |
Name |
Description |
| RailId |
id |
|
Returns
GetSnapshot(RailId)
Declaration
public RailSnapshot GetSnapshot(RailId id)
Parameters
| Type |
Name |
Description |
| RailId |
id |
|
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.
|
RegisterRail(RailId, RailNodePosition[])
Declaration
public void RegisterRail(RailId id, RailNodePosition[] nodes)
Parameters
ResetProgress(RailId)
Declaration
public void ResetProgress(RailId id)
Parameters
| Type |
Name |
Description |
| RailId |
id |
|
SetProgress(RailId, RailProgress)
Declaration
public void SetProgress(RailId id, RailProgress progress)
Parameters
Implements