project-ely/internal/game/entity/command/commands.go

23 lines
290 B
Go

package command
// List of keys supported by all entities
const (
MOVE_X int = iota
MOVE_Y
SET_SPEED
SET_POSITION
SET_ANIMATION
)
type Command struct {
key int
value float32
}
func NewCommand(key int, value float32) Command {
return Command{
key: key,
value: value,
}
}