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.

23 lines
511 B

2 years ago
  1. package commands
  2. import (
  3. "fmt"
  4. "git.aiterp.net/lucifer3/server/internal/formattools"
  5. )
  6. type ReplaceScene struct {
  7. IDs []string `json:"ids"`
  8. SceneID int64 `json:"sceneId"`
  9. }
  10. func (c ReplaceScene) CommandDescription() string {
  11. return fmt.Sprintf("ReplaceScene(%v, %d)", formattools.CompactIDList(c.IDs), c.SceneID)
  12. }
  13. type ClearScene struct {
  14. IDs []string `json:"ids"`
  15. }
  16. func (c ClearScene) CommandDescription() string {
  17. return fmt.Sprintf("ClearScene(%v)", formattools.CompactIDList(c.IDs))
  18. }