file_load_request

package
v0.0.0-...-21449c0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component = FileLoadRequest // Component is an alias to FileLoadRequest

type ComponentFactory

type ComponentFactory struct {
	*akara.ComponentFactory
}

ComponentFactory is a wrapper for the generic component factory

func (*ComponentFactory) Add

Add a FileLoadRequest for the given entity

func (*ComponentFactory) ExportToLua

func (f *ComponentFactory) ExportToLua(state *lua.LState, table *lua.LTable) *lua.LTable

ExportToLua exports the component factory to the target table using the given lua state machine

func (*ComponentFactory) Get

Get a FileLoadRequest for the given entity (can be nil), and a bool for whether it was found

type FileLoadRequest

type FileLoadRequest struct {
	Path     string
	Attempts int
}

FileLoadRequest represents a request for a file to be loaded. When the file is loaded, a FileLoadResponse should be created for the entity (by a system...)

func (*FileLoadRequest) ExportToLua

func (component *FileLoadRequest) ExportToLua(state *lua.LState, table *lua.LTable) *lua.LTable

ExportToLua exports the component into the given table, using the given lua state machine.

func (*FileLoadRequest) New

New creates a new FileLoadRequest component

Jump to

Keyboard shortcuts

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