commands

package
v0.0.0-...-6427680 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloseSpatial

type CloseSpatial struct {
	SourceID uuid.UUID
	TargetID uuid.UUID
}

func (CloseSpatial) Compute

func (command CloseSpatial) Compute(locker *entities.Locker) ([]actions.Action, []pubsub.Notification)

type Command

type Command interface {
	Compute(*entities.Locker) ([]actions.Action, []pubsub.Notification)
}

func Unmarshal

func Unmarshal(kind string, bytes []byte) (Command, error)

type Info

type Info struct {
	SourceID uuid.UUID
}

func (Info) Compute

func (info Info) Compute(locker *entities.Locker) ([]actions.Action, []pubsub.Notification)

type Move

type Move struct {
	SourceID uuid.UUID
	Position components.Position
}

func (Move) Compute

func (move Move) Compute(locker *entities.Locker) ([]actions.Action, []pubsub.Notification)

type OpenSpatial

type OpenSpatial struct {
	SourceID uuid.UUID
	TargetID uuid.UUID
}

func (OpenSpatial) Compute

func (command OpenSpatial) Compute(locker *entities.Locker) ([]actions.Action, []pubsub.Notification)

type Perceive

type Perceive struct {
	SourceID uuid.UUID
}

func (Perceive) Compute

func (command Perceive) Compute(locker *entities.Locker) ([]actions.Action, []pubsub.Notification)

Jump to

Keyboard shortcuts

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