Table of Contents

Class Scheduler

Namespace
VoxelPlayground.Utility
Assembly
GamePlay.dll

tick a function in the way you want

public class Scheduler
Inheritance
object
Scheduler

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

target object
f Action<Scheduler, float, float>
interval float
continued float
delay float
pri int
ignore bool

Returns

Scheduler

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

target object
f Action<Scheduler, float, float>
interval float
continued float
delay float
pri int

Returns

Scheduler

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

target object
f Action<Scheduler, float, float>
interval float
continued float
delay float

Returns

Scheduler

Create(object, Action<Scheduler, float, float>, float, float)

public static Scheduler Create(object target, Action<Scheduler, float, float> f, float interval, float continued)

Parameters

target object
f Action<Scheduler, float, float>
interval float
continued float

Returns

Scheduler

Create(object, Action<Scheduler, float, float>, float)

public static Scheduler Create(object target, Action<Scheduler, float, float> f, float interval)

Parameters

target object
f Action<Scheduler, float, float>
interval float

Returns

Scheduler

Create(object, Action<Scheduler, float, float>)

public static Scheduler Create(object target, Action<Scheduler, float, float> f)

Parameters

target object
f Action<Scheduler, float, float>

Returns

Scheduler

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

scheId int

Returns

Scheduler

IgnoreTimeScale(bool)

public Scheduler IgnoreTimeScale(bool i)

Parameters

i bool

Returns

Scheduler

Init()

public static void Init()

IsFirstFrame()

public bool IsFirstFrame()

Returns

bool

IsNullOrOwnerChanged(Scheduler, object)

public static bool IsNullOrOwnerChanged(Scheduler scher, object owner)

Parameters

scher Scheduler
owner object

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

target object

RemoveSchedule(int)

public static int RemoveSchedule(int scheId)

Parameters

scheId int

Returns

int

RemoveScheduleOwner(object)

Remove all schedulers on this target

public static void RemoveScheduleOwner(object target)

Parameters

target object

Resume()

public void Resume()

ResumeOwner(object)

public static void ResumeOwner(object target)

Parameters

target object

SetCustomData(object)

public Scheduler SetCustomData(object obj)

Parameters

obj object

Returns

Scheduler

SetExtraContinueTime(float)

public void SetExtraContinueTime(float dt)

Parameters

dt float

SetExtraDelayTime(float)

public void SetExtraDelayTime(float dt)

Parameters

dt float

SetIntervalTime(float)

public void SetIntervalTime(float it)

Parameters

it float

SetOnStop(Action<Scheduler>)

public Scheduler SetOnStop(Action<Scheduler> os)

Parameters

os Action<Scheduler>

Returns

Scheduler

SetTimelineOffset(float)

public void SetTimelineOffset(float offset)

Parameters

offset float

SetUpdateChannel(UpdateChannel)

public Scheduler SetUpdateChannel(Scheduler.UpdateChannel uc)

Parameters

uc Scheduler.UpdateChannel

Returns

Scheduler

Start(object, Action, float, float)

public static Scheduler Start(object target, Action task, float delay, float interval = 0)

Parameters

target object
task Action
delay float
interval float

Returns

Scheduler

Stop()

public void Stop()

ToString()

public override string ToString()

Returns

string

UpdateSche(UpdateChannel)

public static void UpdateSche(Scheduler.UpdateChannel channel)

Parameters

channel Scheduler.UpdateChannel