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

Method StartLast

ZezeJava/ZezexJava/server/src/Game/Buf/ModuleBuf.java:46–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44 }
45
46 @Override
47 public void StartLast() {
48 counterHotTimer = 0;
49 _tbufs.getChangeListenerMap().addListener(new BufChangeListener("Game.Buf.Bufs"));
50 var rand = Zeze.Util.Random.getInstance();
51 timerIdHot = Task.scheduleUnsafe(
52 rand.nextLong(3000) + 1000,
53 rand.nextLong(3000) + 1000,
54 () -> {
55 var module = App.Zeze.getHotManager().getModuleContext("Game.Equip", IModuleEquip.class);
56 var service = module.getService();
57 oldAccess = service.hotHelloWorld(oldAccess);
58 });
59
60 Task.call(App.Zeze.newProcedure(() -> {
61 hotTimerId = App.Zeze.getTimer().schedule(
62 rand.nextLong(3000) + 1000, rand.nextLong(3000) + 1000,
63 HotTimer.class, new BBuf());
64 return 0;
65 }, "hotTimer"));
66 }
67
68 int oldAccess = 0;
69

Callers 1

startLastMethod · 0.95

Calls 13

scheduleUnsafeMethod · 0.95
callMethod · 0.95
addListenerMethod · 0.80
getChangeListenerMapMethod · 0.80
getModuleContextMethod · 0.80
hotHelloWorldMethod · 0.65
scheduleMethod · 0.65
getInstanceMethod · 0.45
nextLongMethod · 0.45
getHotManagerMethod · 0.45
getServiceMethod · 0.45
newProcedureMethod · 0.45

Tested by

no test coverage detected