Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component = HasChildren // Component is an alias to HasChildren
type ComponentFactory ¶
type ComponentFactory struct {
*akara.ComponentFactory
}
ComponentFactory is a wrapper for the generic component factory.
func (*ComponentFactory) Add ¶
func (concrete *ComponentFactory) Add(id akara.EID) *HasChildren
Add a HasChildren component to the given entity and return it
func (*ComponentFactory) ExportToLua ¶
func (*ComponentFactory) Get ¶
func (concrete *ComponentFactory) Get(id akara.EID) (*HasChildren, bool)
Get returns the HasChildren component for the given entity, and a bool for whether or not it exists
type HasChildren ¶
HasChildren represents an entity's ability to reference children in a parent-child relationship
func (*HasChildren) ExportToLua ¶
ExportToLua exports the component into the given table, using the given lua state machine.
func (*HasChildren) New ¶
func (*HasChildren) New() akara.Component
New creates a new color component
Click to show internal directories.
Click to hide internal directories.