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

69 lines
1.3 KiB
JavaScript
Raw Normal View History

2016-11-29 12:54:25 +01:00
/**
* GameLib Namespace
*/
2016-10-14 12:32:53 +02:00
if (typeof GameLib == 'undefined') {
function GameLib() {}
}
2016-11-29 12:54:25 +01:00
/**
* GameLib.D3 Namespace
*/
2016-10-14 12:32:53 +02:00
if (typeof GameLib.D3 == 'undefined') {
GameLib.D3 = function(){};
2016-10-26 16:13:18 +02:00
}
2016-11-29 12:54:25 +01:00
/**
* GameLib.D3.API Namespace
* @constructor
*/
if (typeof GameLib.D3.API == 'undefined') {
GameLib.D3.API = function(){};
}
2016-12-15 14:53:39 +01:00
/**
* GameLib.API Namespace
*/
if (typeof GameLib.API == 'undefined') {
GameLib.API = function(){};
}
2016-11-29 12:54:25 +01:00
/**
* GameLib.D3.Runtime Namespace
* @constructor
*/
if (typeof GameLib.D3.Runtime == 'undefined') {
GameLib.D3.Runtime = function(){};
}
2016-10-26 16:13:18 +02:00
if (typeof Q == 'undefined') {
2016-11-17 18:31:41 +01:00
2016-10-26 16:13:18 +02:00
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') {
2016-11-17 18:31:41 +01: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
//#ifdef RUNTIME__
console.log("Loading runtime library...");
//#endif
//#ifdef EDITOR__
console.log("Loading editor library...");
//#endif
// This gets injected by gulp
2017-01-31 15:23:38 +01:00
console.log("GameLib compiled at: " + __DATE__);