var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var InjectionSystem=function(){function InjectionSystem(){(0,_classCallCheck2.default)(this,InjectionSystem);this.systems={};}(0,_createClass2.default)(InjectionSystem,[{key:"depend",value:function depend(SystemName,system){if(this.systems[SystemName])return false;this.systems[SystemName]=system;return true;}},{key:"inject",value:function inject(SystemName){if(!this.systems[SystemName]){console.warn("InjSys: A system was requested but not found: ",SystemName,new Error().stack);return false;}return this.systems[SystemName];}}]);return InjectionSystem;}();var _default=new InjectionSystem();exports.default=_default;