33 lines
743 B
JavaScript
33 lines
743 B
JavaScript
/* **** CBDL_net - Optional layer which adds network support
|
|
*
|
|
*
|
|
* */
|
|
CBDL.Events = CBDL.Events || {};
|
|
CBDL.Events.version = 0.1;
|
|
|
|
/*
|
|
================
|
|
CBDL.Event = CBDL.Event || CBDL.Events.Event;
|
|
|
|
|
|
================
|
|
*/
|
|
|
|
/*
|
|
===============================================================================
|
|
|
|
CBDL.Events.Event
|
|
|
|
Event object that should be instantized with a flag mask specifying the
|
|
events to listen for. Events should be iterated through by running the Event's
|
|
Poll() function.
|
|
|
|
===============================================================================
|
|
*/
|
|
CBDL.Events.Event = function(events_flag, max_events) {
|
|
var position; // Our current position in the events list.
|
|
this.Poll = function() {
|
|
position++;
|
|
};
|
|
};
|