Battle Talent  V11
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
CrossLink.Scheduler Class Reference

tick a function in the way you want More...

Public Types

enum class  UpdateChannel { Update , LateUpdate , FixedUpdate }
 

Public Member Functions

float GetLastTime ()
 
override string ToString ()
 
string GetOneLineInfo ()
 
bool IsFirstFrame ()
 
float GetDelayTime ()
 
void SetTimelineOffset (float offset)
 
void SetExtraDelayTime (float dt)
 
void SetIntervalTime (float it)
 
void SetExtraContinueTime (float dt)
 
void Stop ()
 
Scheduler SetOnStop (System.Action< Scheduler > os)
 
Scheduler SetCustomData (object obj)
 
object GetCustomData ()
 
Scheduler SetUpdateChannel (UpdateChannel uc)
 
Scheduler IgnoreTimeScale (bool i)
 
bool IsStop ()
 
void Pause ()
 
void Resume ()
 

Static Public Member Functions

static void Init ()
 
static Scheduler Create (System.Object target, System.Action< Scheduler, float, float > f)
 
static Scheduler Create (System.Object target, System.Action< Scheduler, float, float > f, float interval)
 
static Scheduler Create (System.Object target, System.Action< Scheduler, float, float > f, float interval, float continued)
 
static Scheduler Create (System.Object target, System.Action< Scheduler, float, float > f, float interval, float continued, float delay)
 
static Scheduler Create (System.Object target, System.Action< Scheduler, float, float > f, float interval, float continued, float delay, int pri)
 
static Scheduler Create (System.Object target, System.Action< Scheduler, float, float > f, float interval, float continued, float delay, int pri, bool ignore)
 start to tick a function, it will stop when the target is destroyed More...
 
static int RemoveSchedule (int scheId)
 
static void RemoveScheduleOwner (System.Object target)
 Remove all schedulers on this target More...
 
static void UpdateSche (UpdateChannel channel)
 
static void PauseOwner (System.Object target)
 
static void ResumeOwner (System.Object target)
 
static Scheduler GetSchedule (int scheId)
 
static void LogSnapshot ()
 
static bool IsNullOrOwnerChanged (Scheduler scher, System.Object owner)
 

Public Attributes

int actionId = -1
 
System.Object owner
 

Static Public Attributes

const int Highest = 0
 
const int High = 1
 
const int Normal = 2
 
const int Low = 3
 
const int Lowest = 4
 

Detailed Description

tick a function in the way you want

Member Function Documentation

◆ Create()

static Scheduler CrossLink.Scheduler.Create ( System.Object  target,
System.Action< Scheduler, float, float >  f,
float  interval,
float  continued,
float  delay,
int  pri,
bool  ignore 
)
static

start to tick a function, it will stop when the target is destroyed

Parameters
target
f
interval
continued
delay
pri
ignore
Returns

◆ RemoveScheduleOwner()

static void CrossLink.Scheduler.RemoveScheduleOwner ( System.Object  target)
static

Remove all schedulers on this target

Parameters
target