Class UnityGameRailService
Inheritance
UnityGameRailService
Assembly: Serenity.UnityGameRail.Infrastructure.dll
Syntax
public class UnityGameRailService : MonoBehaviour, IGameRailService, IService, IFoundationSettings, IRailPathProvider
Constructors
UnityGameRailService()
Declaration
public UnityGameRailService()
Fields
LOG_CATEGORY
Declaration
protected const string LOG_CATEGORY = "GameRailService"
Field Value
_guid
Declaration
Field Value
_id
Declaration
Field Value
_logService
Declaration
protected ILogService _logService
Field Value
_paths
Declaration
protected readonly Dictionary<RailId, RailPath> _paths
Field Value
_progress
Declaration
protected readonly Dictionary<RailId, RailProgress> _progress
Field Value
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 virtual void AdvanceProgress(RailId id, float delta)
Parameters
AdvanceProgress(RailId, float, RailAdvanceMode)
Declaration
public virtual void AdvanceProgress(RailId id, float delta, RailAdvanceMode mode)
Parameters
ConfigureRail(RailPathConfig)
Declaration
public virtual void ConfigureRail(RailPathConfig config)
Parameters
GetPath(RailId)
Declaration
public RailPath GetPath(RailId id)
Parameters
| Type |
Name |
Description |
| RailId |
id |
|
Returns
GetProgress(RailId)
Declaration
public virtual RailProgress GetProgress(RailId id)
Parameters
| Type |
Name |
Description |
| RailId |
id |
|
Returns
GetSnapshot(RailId)
Declaration
public virtual RailSnapshot GetSnapshot(RailId id)
Parameters
| Type |
Name |
Description |
| RailId |
id |
|
Returns
InitializeService(ILogService)
Initializes the service with required dependencies.
Declaration
public virtual void InitializeService(ILogService logService)
Parameters
| Type |
Name |
Description |
| ILogService |
logService |
The logging service for diagnostic output.
|
RegisterRail(RailId, RailNodePosition[])
Declaration
public virtual void RegisterRail(RailId id, RailNodePosition[] nodes)
Parameters
ResetProgress(RailId)
Declaration
public virtual void ResetProgress(RailId id)
Parameters
| Type |
Name |
Description |
| RailId |
id |
|
SetProgress(RailId, RailProgress)
Declaration
public virtual void SetProgress(RailId id, RailProgress progress)
Parameters
Implements