script

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name ...
	Name = "script"
	// EntityScript ...
	EntityScript = string("script")

	Version = "0.0.1"
)
View Source
const (
	// FuncEntityAction ...
	FuncEntityAction = "entityAction"
)

Variables

This section is empty.

Functions

func New

func New() plugins.Plugable

New ...

Types

type Actor

type Actor struct {
	entity_manager.BaseActor
	// contains filtered or unexported fields
}

Actor ...

func NewActor

func NewActor(entity *m.Entity,
	adaptors *adaptors.Adaptors,
	scriptService scripts.ScriptService,
	entityManager entity_manager.EntityManager,
	eventBus bus.Bus) (actor *Actor, err error)

NewActor ...

func (*Actor) SetState

func (e *Actor) SetState(params entity_manager.EntityStateParams) (err error)

SetState ...

func (*Actor) Spawn

func (e *Actor) Spawn() entity_manager.PluginActor

Spawn ...

Jump to

Keyboard shortcuts

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