69 lines
1.3 KiB
JavaScript
69 lines
1.3 KiB
JavaScript
|
/**
|
||
|
* 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');
|
||
|
}
|
||
|
|
||
|
|
||
|
//#ifdef RUNTIME__
|
||
|
console.log("Loading runtime library...");
|
||
|
//#endif
|
||
|
|
||
|
//#ifdef EDITOR__
|
||
|
console.log("Loading editor library...");
|
||
|
//#endif
|
||
|
|
||
|
// This gets injected by gulp
|
||
|
console.log("GameLib compiled at", __DATE__);
|