MCPcopy Create free account
hub / github.com/e2wugui/zeze / createModules

Method createModules

ZezeJava/ZezexJava/server/src/Game/App.java:208–236  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

206 }
207
208 @Override
209 public void createModules() throws Exception {
210 lock();
211 try {
212 Zeze.setHotManager(new Zeze.Hot.HotManager(this, Zeze.getConfig().getHotWorkingDir(), Zeze.getConfig().getHotDistributeDir()));
213 Zeze.initialize(this);
214 Zeze.getHotManager().initialize(modules);
215 var _modules_ = createRedirectModules(new Class[] {
216 Game.Map.ModuleMap.class,
217 Game.Rank.ModuleRank.class,
218 });
219 if (_modules_ == null)
220 return;
221
222 Game_Map = (Game.Map.ModuleMap)_modules_[0];
223 Game_Map.Initialize(this);
224 if (modules.put(Game_Map.getFullName(), Game_Map) != null)
225 throw new IllegalStateException("duplicate module name: Game_Map");
226
227 Game_Rank = (Game.Rank.ModuleRank)_modules_[1];
228 Game_Rank.Initialize(this);
229 if (modules.put(Game_Rank.getFullName(), Game_Rank) != null)
230 throw new IllegalStateException("duplicate module name: Game_Rank");
231
232 Zeze.setSchemas(new Game.Schemas());
233 } finally {
234 unlock();
235 }
236 }
237
238 public void destroyModules() throws Exception {
239 lock();

Callers 1

StartMethod · 0.95

Calls 13

setHotManagerMethod · 0.80
getHotWorkingDirMethod · 0.80
getHotDistributeDirMethod · 0.80
setSchemasMethod · 0.80
lockMethod · 0.65
InitializeMethod · 0.65
putMethod · 0.65
getFullNameMethod · 0.65
unlockMethod · 0.65
getConfigMethod · 0.45
initializeMethod · 0.45
getHotManagerMethod · 0.45

Tested by

no test coverage detected