C# Class AssemblyCSharp.Scheduler

Inheritance: AbstractService, IScheduler
Exibir arquivo Open project: wooga/ps_social_jam Class Usage Examples

Public Methods

Method Description
Schedule ( float>.Action action, System.TimeSpan timeSpan, bool recurring = false, System.TimeSpan delay = default(TimeSpan) ) : ICancelable
ScheduleOnNextFrame ( Action action ) : void
ScheduleTick ( float>.Action tickAction, System.TimeSpan delay = default(TimeSpan) ) : ICancelable
Scheduler ( double epochTime = -1 ) : System
Update ( double deltaTime ) : void

Protected Methods

Method Description
DisposeManagedResources ( ) : void

Private Methods

Method Description
Cancel ( ScheduledAction scheduledAction ) : void
DoSchedule ( ScheduledAction scheduledAction ) : void
MoveBehind ( ScheduledAction scheduledAction, ScheduledAction predecessor ) : void
Remove ( ScheduledAction scheduledAction ) : void
TryFindPredecessor ( ScheduledAction scheduledAction, ScheduledAction startWith ) : ScheduledAction
Validate ( ) : bool

Method Details

DisposeManagedResources() protected method

protected DisposeManagedResources ( ) : void
return void

Schedule() public method

public Schedule ( float>.Action action, System.TimeSpan timeSpan, bool recurring = false, System.TimeSpan delay = default(TimeSpan) ) : ICancelable
action float>.Action
timeSpan System.TimeSpan
recurring bool
delay System.TimeSpan
return ICancelable

ScheduleOnNextFrame() public method

public ScheduleOnNextFrame ( Action action ) : void
action Action
return void

ScheduleTick() public method

public ScheduleTick ( float>.Action tickAction, System.TimeSpan delay = default(TimeSpan) ) : ICancelable
tickAction float>.Action
delay System.TimeSpan
return ICancelable

Scheduler() public method

public Scheduler ( double epochTime = -1 ) : System
epochTime double
return System

Update() public method

public Update ( double deltaTime ) : void
deltaTime double
return void