ecs

package
v0.0.0-...-1ebc2e8 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityLoader

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

func NewEntityLoader

func NewEntityLoader() EntityLoader

func (*EntityLoader) Load

func (el *EntityLoader) Load(e *ecs.Entity, data []byte) error

Load returns a new entity from given by adding json unmarshalled components

func (*EntityLoader) Register

func (e *EntityLoader) Register(cs ...LoadableComponent)

type LoadableComponent

type LoadableComponent interface {
	Type() ecs.ComponentType
	Load([]byte) LoadableComponent
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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