/** * GameLib Namespace */ if (typeof GameLib === 'undefined') { function GameLib() {} } /** * GameLib.D3 Namespace */ if (typeof GameLib.D3 === 'undefined') { GameLib.D3 = function(){}; } /** * GameLib.D3.API Namespace * @constructor */ if (typeof GameLib.D3.API === 'undefined') { GameLib.D3.API = function(){}; } /** * GameLib.API Namespace */ if (typeof GameLib.API === 'undefined') { GameLib.API = function(){}; } /** * GameLib.D3.Runtime Namespace * @constructor */ if (typeof GameLib.D3.Runtime === 'undefined') { GameLib.D3.Runtime = function(){}; } if (typeof Q === 'undefined') { if (typeof require === 'undefined') { console.warn('You need the Q promise library for the GameLib.D3'); throw new Error('You need the Q promise library for the GameLib.D3'); } var Q = require('q'); } if (typeof _ === 'undefined') { if (typeof require === 'undefined') { console.warn('You need the lodash library for the GameLib.D3'); throw new Error('You need the lodash library for the GameLib.D3'); } var _ = require('lodash'); } // This gets injected by gulp console.log("Loading GameLib compiled at: " + __DATE__);