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.

22 lines
414 B

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. package commands
  2. import (
  3. "fmt"
  4. )
  5. type ReplaceScene struct {
  6. Match string `json:"match"`
  7. SceneName string `json:"sceneName"`
  8. }
  9. func (c ReplaceScene) CommandDescription() string {
  10. return fmt.Sprintf("ReplaceScene(%v, %s)", c.Match, c.SceneName)
  11. }
  12. type ClearScene struct {
  13. Match string `json:"match"`
  14. }
  15. func (c ClearScene) CommandDescription() string {
  16. return fmt.Sprintf("ClearScene(%v)", c.Match)
  17. }