ei

package module
v0.0.0-...-ebf9bbc Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: MIT Imports: 1 Imported by: 0

README

EI (Entity Interface) a.k.a. Beginner's ECS

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sweep

func Sweep[E Interface, S ~[]E](xs *S)

func SweepEach

func SweepEach[E Interface, S ~[]E](xs *S, pred func(int, E))

func SweepEachMap

func SweepEachMap[K comparable, V Interface, M ~map[K]V](m M, pred func(K, V))

func SweepMap

func SweepMap[K comparable, V Interface, M ~map[K]V](m M)

Types

type Entity

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

func (*Entity) Alive

func (e *Entity) Alive() bool

func (*Entity) Kill

func (e *Entity) Kill()

type EntityAtomic

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

func (*EntityAtomic) Alive

func (e *EntityAtomic) Alive() bool

func (*EntityAtomic) Kill

func (e *EntityAtomic) Kill()

type Interface

type Interface interface {
	Kill()
	Alive() bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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