mineng

package module
v0.0.0-...-4332c7e Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallableValue

type CallableValue interface {
	Type() reflect.Type
	Call(in []reflect.Value) []reflect.Value
}

type ECS

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

func NewECS

func NewECS() *ECS

func (*ECS) Asset

func (ecs *ECS) Asset(asset interface{})

func (*ECS) Attach

func (ecs *ECS) Attach(id object.ID, st interface{}) error

func (*ECS) InitSystem

func (ecs *ECS) InitSystem(system interface{})

func (*ECS) Spawn

func (ecs *ECS) Spawn(st interface{}) object.ID

func (*ECS) Step

func (ecs *ECS) Step()

func (*ECS) System

func (ecs *ECS) System(system interface{})

type Loop

type Loop struct {
	*ECS
	Period time.Duration
}

func New

func New(period time.Duration) *Loop

func (*Loop) Run

func (loop *Loop) Run(ctx context.Context) error

Directories

Path Synopsis
internal
cache
Package cache provides a resettable variant of sync.Once.
Package cache provides a resettable variant of sync.Once.
dep

Jump to

Keyboard shortcuts

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