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

Method upgrade

ZezeJava/ZezexJava/server/ModuleEquip.java:310–323  ·  view source on GitHub ↗
(HotService old)

Source from the content-addressed store, hash-verified

308 }
309
310 @Override
311 public void upgrade(HotService old) throws Exception {
312 App.Zeze.getHotManager().throwIfMatch("upgrade");
313
314 var oldI = (IModuleEquip)old;
315 App.Zeze.newProcedure(() -> {
316 startOnlineTimer(oldI.getRoleId());
317 return 0;
318 }, "startOnlineTimer").call();
319 timerHot = oldI.getTimerHot(); // 继承过来。
320 timerNamed = oldI.getTimerNamed(); // 继承过来。
321 hotTimerCount = oldI.getHotTimerCount(); // 继承过来。
322 namedTimerCount = oldI.getNamedTimerCount(); // 继承过来。
323 }
324
325 private static class ItemsChangeListener implements ChangeListener {
326 private static final String Name = "Game.Equip.Items";

Callers

nothing calls this directly

Calls 10

startOnlineTimerMethod · 0.95
throwIfMatchMethod · 0.80
callMethod · 0.65
getRoleIdMethod · 0.65
getTimerHotMethod · 0.65
getTimerNamedMethod · 0.65
getHotTimerCountMethod · 0.65
getNamedTimerCountMethod · 0.65
getHotManagerMethod · 0.45
newProcedureMethod · 0.45

Tested by

no test coverage detected