Class Scheduler
- Namespace
- VoxelPlayground.Utility
- Assembly
- GamePlay.dll
tick a function in the way you want
public class Scheduler
- Inheritance
-
objectScheduler
Fields
actionId
public int actionId
Field Value
- int
High
public const int High = 1
Field Value
- int
Highest
public const int Highest = 0
Field Value
- int
Low
public const int Low = 3
Field Value
- int
Lowest
public const int Lowest = 4
Field Value
- int
Normal
public const int Normal = 2
Field Value
- int
owner
public object owner
Field Value
- object
Methods
Create(object, Action<Scheduler, float, float>, float, float, float, int, bool)
start to tick a function, it will stop when the target is destroyed
public static Scheduler Create(object target, Action<Scheduler, float, float> f, float interval, float continued, float delay, int pri, bool ignore)
Parameters
targetobjectfAction<Scheduler, float, float>intervalfloatcontinuedfloatdelayfloatpriintignorebool
Returns
Create(object, Action<Scheduler, float, float>, float, float, float, int)
public static Scheduler Create(object target, Action<Scheduler, float, float> f, float interval, float continued, float delay, int pri)
Parameters
targetobjectfAction<Scheduler, float, float>intervalfloatcontinuedfloatdelayfloatpriint
Returns
Create(object, Action<Scheduler, float, float>, float, float, float)
public static Scheduler Create(object target, Action<Scheduler, float, float> f, float interval, float continued, float delay)
Parameters
targetobjectfAction<Scheduler, float, float>intervalfloatcontinuedfloatdelayfloat
Returns
Create(object, Action<Scheduler, float, float>, float, float)
public static Scheduler Create(object target, Action<Scheduler, float, float> f, float interval, float continued)
Parameters
targetobjectfAction<Scheduler, float, float>intervalfloatcontinuedfloat
Returns
Create(object, Action<Scheduler, float, float>, float)
public static Scheduler Create(object target, Action<Scheduler, float, float> f, float interval)
Parameters
targetobjectfAction<Scheduler, float, float>intervalfloat
Returns
Create(object, Action<Scheduler, float, float>)
public static Scheduler Create(object target, Action<Scheduler, float, float> f)
Parameters
targetobjectfAction<Scheduler, float, float>
Returns
GetCustomData()
public object GetCustomData()
Returns
- object
GetDelayTime()
public float GetDelayTime()
Returns
- float
GetLastTime()
public float GetLastTime()
Returns
- float
GetOneLineInfo()
public string GetOneLineInfo()
Returns
- string
GetSchedule(int)
public static Scheduler GetSchedule(int scheId)
Parameters
scheIdint
Returns
IgnoreTimeScale(bool)
public Scheduler IgnoreTimeScale(bool i)
Parameters
ibool
Returns
Init()
public static void Init()
IsFirstFrame()
public bool IsFirstFrame()
Returns
- bool
IsNullOrOwnerChanged(Scheduler, object)
public static bool IsNullOrOwnerChanged(Scheduler scher, object owner)
Parameters
scherSchedulerownerobject
Returns
- bool
IsStop()
public bool IsStop()
Returns
- bool
LogSnapshot()
public static void LogSnapshot()
Pause()
public void Pause()
PauseOwner(object)
public static void PauseOwner(object target)
Parameters
targetobject
RemoveSchedule(int)
public static int RemoveSchedule(int scheId)
Parameters
scheIdint
Returns
- int
RemoveScheduleOwner(object)
Remove all schedulers on this target
public static void RemoveScheduleOwner(object target)
Parameters
targetobject
Resume()
public void Resume()
ResumeOwner(object)
public static void ResumeOwner(object target)
Parameters
targetobject
SetCustomData(object)
public Scheduler SetCustomData(object obj)
Parameters
objobject
Returns
SetExtraContinueTime(float)
public void SetExtraContinueTime(float dt)
Parameters
dtfloat
SetExtraDelayTime(float)
public void SetExtraDelayTime(float dt)
Parameters
dtfloat
SetIntervalTime(float)
public void SetIntervalTime(float it)
Parameters
itfloat
SetOnStop(Action<Scheduler>)
public Scheduler SetOnStop(Action<Scheduler> os)
Parameters
osAction<Scheduler>
Returns
SetTimelineOffset(float)
public void SetTimelineOffset(float offset)
Parameters
offsetfloat
SetUpdateChannel(UpdateChannel)
public Scheduler SetUpdateChannel(Scheduler.UpdateChannel uc)
Parameters
Returns
Start(object, Action, float, float)
public static Scheduler Start(object target, Action task, float delay, float interval = 0)
Parameters
targetobjecttaskActiondelayfloatintervalfloat
Returns
Stop()
public void Stop()
ToString()
public override string ToString()
Returns
- string
UpdateSche(UpdateChannel)
public static void UpdateSche(Scheduler.UpdateChannel channel)
Parameters
channelScheduler.UpdateChannel