command

package
v0.0.0-...-296174e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface {
	Invoke() error
}

type MoveCommand

type MoveCommand struct {
	// contains filtered or unexported fields
}

func NewMoveCommand

func NewMoveCommand(obj object.Movable, translation *primitives.Vector3d) *MoveCommand

func (*MoveCommand) Invoke

func (cmd *MoveCommand) Invoke() error

type RecursiveCommand

type RecursiveCommand struct {
	CMD   Command
	Queue chan Command
}

func (*RecursiveCommand) Invoke

func (cmd *RecursiveCommand) Invoke() error

type RotateCommand

type RotateCommand struct {
	// contains filtered or unexported fields
}

func NewRotateCommand

func NewRotateCommand(obj object.Rotatable, rotation *primitives.Vector3d) *RotateCommand

func (*RotateCommand) Invoke

func (cmd *RotateCommand) Invoke() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL