r3-legacy/src/game-lib-a-0.js

60 lines
1.2 KiB
JavaScript
Raw Normal View History

2016-11-29 12:54:25 +01:00
/**
* GameLib Namespace
*/
2017-05-10 15:56:27 +02:00
if (typeof GameLib === 'undefined') {
2016-10-14 12:32:53 +02:00
function GameLib() {}
}
2016-11-29 12:54:25 +01:00
/**
* GameLib.D3 Namespace
*/
2017-05-10 15:56:27 +02:00
if (typeof GameLib.D3 === 'undefined') {
2016-10-14 12:32:53 +02:00
GameLib.D3 = function(){};
2016-10-26 16:13:18 +02:00
}
2016-11-29 12:54:25 +01:00
/**
* GameLib.D3.API Namespace
* @constructor
*/
2017-05-10 15:56:27 +02:00
if (typeof GameLib.D3.API === 'undefined') {
2016-11-29 12:54:25 +01:00
GameLib.D3.API = function(){};
}
2016-12-15 14:53:39 +01:00
/**
* GameLib.API Namespace
*/
2017-05-10 15:56:27 +02:00
if (typeof GameLib.API === 'undefined') {
2016-12-15 14:53:39 +01:00
GameLib.API = function(){};
}
2016-11-29 12:54:25 +01:00
/**
* GameLib.D3.Runtime Namespace
* @constructor
*/
2017-05-10 15:56:27 +02:00
if (typeof GameLib.D3.Runtime === 'undefined') {
2016-11-29 12:54:25 +01:00
GameLib.D3.Runtime = function(){};
}
2017-05-10 15:56:27 +02:00
if (typeof Q === 'undefined') {
2016-11-17 18:31:41 +01:00
2017-05-10 15:56:27 +02:00
if (typeof require === 'undefined') {
2016-10-26 16:13:18 +02:00
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');
}
2017-05-10 15:56:27 +02:00
if (typeof _ === 'undefined') {
2016-11-17 18:31:41 +01:00
2017-05-10 15:56:27 +02:00
if (typeof require === 'undefined') {
2016-11-17 10:24:59 +01:00
console.warn('You need the lodash library for the GameLib.D3');
throw new Error('You need the lodash library for the GameLib.D3');
}
2016-11-17 18:31:41 +01:00
var _ = require('lodash');
}
2016-11-21 14:36:38 +01:00
// This gets injected by gulp
console.log("Loading GameLib compiled at: " + __DATE__);