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.

16 lines
386 B

2 years ago
  1. package commands
  2. import (
  3. "fmt"
  4. lucifer3 "git.aiterp.net/lucifer3/server"
  5. "git.aiterp.net/lucifer3/server/internal/formattools"
  6. )
  7. type Assign struct {
  8. IDs []string `json:"ids"`
  9. Effect lucifer3.Effect `json:"effect"`
  10. }
  11. func (c Assign) CommandDescription() string {
  12. return fmt.Sprintf("Assign(%v, %s)", formattools.CompactIDList(c.IDs), c.Effect.EffectDescription())
  13. }