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.
 
 
 
 
 
 

21 lines
494 B

package commands
import (
"fmt"
lucifer3 "git.aiterp.net/lucifer3/server"
"github.com/google/uuid"
)
type Assign struct {
ID *uuid.UUID `json:"id"`
Match string `json:"match"`
Effect lucifer3.Effect `json:"effect"`
}
func (c Assign) CommandDescription() string {
if c.ID != nil {
return fmt.Sprintf("Assign(%s, %s, id=%s)", c.Match, c.Effect.EffectDescription(), *c.ID)
} else {
return fmt.Sprintf("Assign(%s, %s)", c.Match, c.Effect.EffectDescription())
}
}