Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) *FileType
Add adds a FileType component to the given entity and returns it
func (*ComponentFactory) ExportToLua ¶
ExportToLua exports the factory to a lua table using the given lua state machine and lua table
type FileType ¶
type FileType struct {
Type string
}
FileType is a component that contains a string descriptor of the detected file type
func (*FileType) ExportToLua ¶
ExportToLua exports the component into the given table, using the given lua state machine.
Click to show internal directories.
Click to hide internal directories.