XSGridEditor  1.0.0
XSGridEditor is a lightweight square grid map system for 2D/3D SRPG games, and comes with a simple and easy-to-use grid editing function. It can be used as a beginning for you to create SRPG games.
Public Member Functions | Protected Member Functions | Properties | Private Member Functions | List of all members
XSSLG.CustomSchedulerItem Class Reference

CustomScheduler的元素 More...

Public Member Functions

void Start (Action func, float interval, int repeat, bool immediate, float delay, Action< CustomSchedulerItem > onFinishHandler=null)
 
virtual void Stop ()
 
void Update (float dt)
 自定义定时器的update要手动调用 More...
 

Protected Member Functions

void UpdateDelay ()
 

Properties

bool Active = false [get, protected set]
 
float UpdateTime = 0 [get, set]
 
float Delay = 0 [get, set]
 
Action< CustomSchedulerItemOnFinishHandler [get, set]
 
Action Func [get, set]
 
float Interval = 0 [get, set]
 
int Repeat = -1 [get, set]
 
SchedulerStateType State = SchedulerStateType.None [get, set]
 

Private Member Functions

void UpdateInterval ()
 

Detailed Description

CustomScheduler的元素

Member Function Documentation

◆ Start()

void XSSLG.CustomSchedulerItem.Start ( Action  func,
float  interval,
int  repeat,
bool  immediate,
float  delay,
Action< CustomSchedulerItem onFinishHandler = null 
)
inline

Parameters
func回调
interval间隔
repeat
immediate是否立即就调用
delay
onFinishHandler

◆ Stop()

virtual void XSSLG.CustomSchedulerItem.Stop ( )
inlinevirtual

◆ Update()

void XSSLG.CustomSchedulerItem.Update ( float  dt)
inline

自定义定时器的update要手动调用

Parameters
dt

◆ UpdateDelay()

void XSSLG.CustomSchedulerItem.UpdateDelay ( )
inlineprotected

◆ UpdateInterval()

void XSSLG.CustomSchedulerItem.UpdateInterval ( )
inlineprivate

Property Documentation

◆ Active

bool XSSLG.CustomSchedulerItem.Active = false
getprotected set

◆ Delay

float XSSLG.CustomSchedulerItem.Delay = 0
getsetprotected

◆ Func

Action XSSLG.CustomSchedulerItem.Func
getsetprivate

◆ Interval

float XSSLG.CustomSchedulerItem.Interval = 0
getsetprivate

◆ OnFinishHandler

Action<CustomSchedulerItem> XSSLG.CustomSchedulerItem.OnFinishHandler
getsetprotected

◆ Repeat

int XSSLG.CustomSchedulerItem.Repeat = -1
getsetprivate

◆ State

SchedulerStateType XSSLG.CustomSchedulerItem.State = SchedulerStateType.None
getsetprivate

◆ UpdateTime

float XSSLG.CustomSchedulerItem.UpdateTime = 0
getsetprotected

The documentation for this class was generated from the following file: