Commit | Line | Data |
---|---|---|
4a2d6056 TW |
1 | package kaka.cakelight; |
2 | ||
03b67a73 TW |
3 | import java.util.function.Consumer; |
4 | ||
5 | public abstract class Mode { | |
6 | protected Consumer<LedFrame> frameListener; | |
7 | ||
8 | public abstract void enter(Configuration config); | |
9 | public abstract void exit(); | |
10 | ||
11 | public void setFrameListener(Consumer<LedFrame> listener) { | |
12 | frameListener = listener; | |
13 | } | |
4a2d6056 | 14 | } |