Game Development Reference
In-Depth Information
public ScheduleMode Mode
{
get { return _mode; }
}
public Object UserData
{
get { return _userData; }
}
public JobTriggeredEventArgs(ScheduleMode mode, Object userData)
{
_mode = mode;
_userData = userData;
}
}
The following class implements the functionality behind a job and the timing
mechanism that controls it.
public abstract class JobBase
{
private ScheduleMode _mode;
private Timer _jobTimer;
private Object _userData;
private Scheduler _schedule;
protected JobBase(Scheduler schedule, ScheduleMode mode)
{
_schedule = schedule;
_mode = mode;
}
public Timer JobTimer
{
get { return _jobTimer; }
set { _jobTimer = value; }
}
public ScheduleMode Mode
{
get { return _mode; }
}
Search Nedrilad ::




Custom Search