Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #initclip 28
- if (!dofus.LoadConfigModulesList)
- {
- if (!dofus)
- {
- _global.dofus = new Object();
- } // end if
- var _loc1 = (_global.dofus.LoadConfigModulesList = function (oAPI)
- {
- super();
- this.initialize(oAPI);
- this.loadModules();
- this.onLoadModulesList()
- }).prototype;
- _loc1.initialize = function (oAPI)
- {
- super.initialize(oAPI);
- };
- _loc1.modulesLoaded = new Array();
- _loc1.loadModules = function()
- {
- var modulesXML = new XML();
- modulesXML.ignoreWhite = true;
- modulesXML.onLoad = function(bSuccess)
- {
- _loc1.onLoadModulesList(bSuccess,this,_loc1.modulesLoaded);
- };
- modulesXML.load("modules/list.xml");
- };
- _loc1.onLoadModulesList = function(bSuccess, xDoc, array)
- {
- if (bSuccess)
- {
- var modules = xDoc.firstChild.childNodes;
- for (var module in modules)
- {
- var attributes = modules[module].attributes;
- var mod = {name:attributes.name, path:attributes.path, id:attrubutes.id};
- array.push(mod);
- createEmptyMovieClip(mod.name, getNextHighestDepth());
- loadMovie(mod.path, mod.name);
- }
- }
- };
- ASSetPropFlags(_loc1, null, 1)
- } // end if
- #endinitclip
- //package core
- _loc1.checkNodes = function ()
- {
- if (_global.API.gfx.initialize == undefined)
- {
- return (false);
- } // end if
- if (_global.API.kernel.start == undefined)
- {
- return (false);
- } // end if
- if (_global.API.ui.loadUIComponent == undefined)
- {
- return (false);
- } // end if
- if (_global.API.modulesList.loadModules == undefined)
- {
- return (false);
- } // end if
- if (_global.API.modulesList.onLoadModulesList == undefined)
- {
- return (false);
- } // end if
- if (_global.API.modulesList.modulesLoaded == undefined)
- {
- return (false);
- } // end if
- return (true);
- };
- _loc1.startGame = function ()
- {
- _global.API.kernel.start();
- _global.API.modulesList.loadModules();
- _global.API.modulesList.onLoadModulesList();
- _global.API.modulesList.modulesLoaded();
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement