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 | Properties | List of all members
XSSLG.CustomScheduler Class Reference

不注释了,就是和ccscheduler一样的 More...

Public Member Functions

CustomSchedulerItem Schedule (Action func, float interval, int repeat=-1, bool immediate=false, float delay=0)
 定时调用func More...
 
CustomSchedulerItem ScheduleOnce (Action func, float delay)
 几回合后调用函数 More...
 
void UnSchedule (CustomSchedulerItem schedule)
 注销定时器 More...
 
void Update (float dt)
 定时器更新 自定义定时器的update要手动调用 More...
 

Properties

List< CustomSchedulerItemScheduleList = new List<CustomSchedulerItem>() [get]
 

Detailed Description

不注释了,就是和ccscheduler一样的

Member Function Documentation

◆ Schedule()

CustomSchedulerItem XSSLG.CustomScheduler.Schedule ( Action  func,
float  interval,
int  repeat = -1,
bool  immediate = false,
float  delay = 0 
)
inline

定时调用func

Parameters
func具体定时调用函数
interval几回合调用一次
repeat重复几次,为-1表示无限
immediate是否立即调用一次
delay延时几回合后再开始定时
Returns

◆ ScheduleOnce()

CustomSchedulerItem XSSLG.CustomScheduler.ScheduleOnce ( Action  func,
float  delay 
)

几回合后调用函数

Parameters
func调用的函数
delay几回合
Returns

◆ UnSchedule()

void XSSLG.CustomScheduler.UnSchedule ( CustomSchedulerItem  schedule)

注销定时器

Parameters
schedule定时器对象

◆ Update()

void XSSLG.CustomScheduler.Update ( float  dt)
inline

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

Parameters
dt

Property Documentation

◆ ScheduleList

List<CustomSchedulerItem> XSSLG.CustomScheduler.ScheduleList = new List<CustomSchedulerItem>()
getprivate

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