(App app)
| 70 | } |
| 71 | |
| 72 | public void Start(App app) { |
| 73 | App.Zeze.getHotManager().throwIfMatch("start"); |
| 74 | |
| 75 | _tequip.getChangeListenerMap().addListener(new ItemsChangeListener()); |
| 76 | App.Zeze.newProcedure(() -> { |
| 77 | var timer = App.Zeze.getTimer(); |
| 78 | if (!isHotUpgrade()) { |
| 79 | var rand = Zeze.Util.Random.getInstance(); |
| 80 | timer.scheduleNamed(timerNamed, |
| 81 | rand.nextLong(3000) + 1000, |
| 82 | rand.nextLong(3000) + 1000, |
| 83 | HotTimer.class, new BEquipExtra(0, 2, 0)); |
| 84 | |
| 85 | timerHot = timer.schedule( |
| 86 | rand.nextLong(3000) + 1000, |
| 87 | rand.nextLong(3000) + 1000, |
| 88 | HotTimer.class, new BEquipExtra(0, 1, 0)); |
| 89 | resetCollections(); |
| 90 | } |
| 91 | return 0; |
| 92 | }, "register timers").call(); |
| 93 | } |
| 94 | |
| 95 | public void Stop(App app) { |
| 96 | App.Zeze.getHotManager().throwIfMatch("stop"); |
no test coverage detected