actions

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action interface {
	Execute(*entities.Locker)
}

func Unmarshal

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

type ClearAllEntities

type ClearAllEntities struct{}

func (ClearAllEntities) Execute

func (_ ClearAllEntities) Execute(locker *entities.Locker)

type MoveFrom

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

func (MoveFrom) Execute

func (moveFrom MoveFrom) Execute(locker *entities.Locker)

type MoveTo

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

func (MoveTo) Execute

func (moveTo MoveTo) Execute(locker *entities.Locker)

type SetEntity

type SetEntity struct {
	Entity entities.Entity
}

func (SetEntity) Execute

func (setEntity SetEntity) Execute(locker *entities.Locker)

type SetStackability

type SetStackability struct {
	Entity       entities.Entity
	Stackability bool
}

func (SetStackability) Execute

func (m SetStackability) Execute(locker *entities.Locker)

Jump to

Keyboard shortcuts

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