Coeur-Morny-Cono/src/main/scala/cc/sukazyo/cono/morny/bot/api
Eyre_S c5c6683459
for event, fix wrong OK stats, add CANCELED tag
- Now the status of EventEnv is a State array that infers the state history
  - State can be OK or CANCELED, and can be set multiple times
  - state method can get the last state set, and status method can get the state history
  - Default EventListener.executeFilter implementation is changed to true if stats is null
- add consume[T](T=>Unit) for EventEnv, to simplifying the old consume[T](Class[T])(T=>Unit)
- changed execution sort of EventListener in EventListenerManager. Now atEventPost method will be run after all events' normal listeners complete.
- cha OnMedicationNotifyApply will only tag event as OK when the refresh function works (fixed part of the wrong OK state)
- cha MornyOnUpdateTimestampOffsetLock tag event CANCELED but not OK to fix part of the wrong OK state
2023-11-20 11:18:32 +08:00
..
EventEnv.scala for event, fix wrong OK stats, add CANCELED tag 2023-11-20 11:18:32 +08:00
EventListener.scala for event, fix wrong OK stats, add CANCELED tag 2023-11-20 11:18:32 +08:00
EventListenerManager.scala for event, fix wrong OK stats, add CANCELED tag 2023-11-20 11:18:32 +08:00