You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
456 B

2 years ago
2 years ago
  1. package lucifer3
  2. import (
  3. "git.aiterp.net/lucifer3/server/device"
  4. "time"
  5. )
  6. type Effect interface {
  7. // State uses three values:
  8. // index: The position of this ID;
  9. // len: The total length of the effect's IDs;
  10. // round: Increases by one for each run of the effect if Frequency > 0;
  11. // random: A random positive int in the full 31-bit range.
  12. State(index, len, round, random int) device.State
  13. Frequency() time.Duration
  14. EffectDescription() string
  15. }