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 }
Click to show internal directories.
Click to hide internal directories.