import GameManagerBase from 'GameManagerBase' import GameConstant from 'GameConstant' import HNScenceManager from 'HNScenceManager' module.exports = ( function () { var HNGameManager = GameManagerBase.Instance(); var ScenceManager = HNScenceManager.Instance(); HNGameManager.CreateGame = function (wKindID) { return ScenceManager.CreateGame(wKindID); }; HNGameManager.loadGameBaseData = function (wKindID) { var callBack = function(gameNode){ HNGameManager.CreateKernel(); } ScenceManager.loadGameBaseData(wKindID, callBack); }; HNGameManager.startXZDDRecord = function (recordData, wKindID) { var self = this; var callBack = function(gameNode){ var pKernelSink = self.CreateGame(wKindID); pKernelSink.KindID = wKindID; pKernelSink.startRecord(recordData); } }; return HNGameManager; })()