UNPKG

starling-framework

Version:

A fast, productive library for 2D cross-platform development.

46 lines (28 loc) 856 B
// Class: IntIterator var $global = typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : this $global.Object.defineProperty(exports, "__esModule", {value: true}); var __map_reserved = {}; // Imports var $hxClasses = require("./hxClasses_stub").default; var $hxEnums = require("./hxEnums_stub").default; // Constructor var IntIterator = function(min,max) { this.min = min; this.max = max; } // Meta IntIterator.__name__ = "IntIterator"; IntIterator.__isInterface__ = false; IntIterator.prototype = { hasNext: function() { return this.min < this.max; }, next: function() { return this.min++; } }; IntIterator.prototype.__class__ = IntIterator.prototype.constructor = $hxClasses["IntIterator"] = IntIterator; // Init // Statics // Export exports.default = IntIterator;