Documentation
¶
Index ¶
- type ActiveViewChangedEvent
- type Application
- type ControllerChangedEvent
- type EnvironmentChangedEvent
- type Home
- func (h *Home) Controller() data.Controller
- func (h *Home) Data() async.Promise[*data.HomeData]
- func (h *Home) Environment() data.Environment
- func (h *Home) Scene() *HomeScene
- func (h *Home) SetController(controller data.Controller)
- func (h *Home) SetData(sceneData async.Promise[*data.HomeData])
- func (h *Home) SetEnvironment(environment data.Environment)
- func (h *Home) SetScene(scene *HomeScene)
- type HomeScene
- type Loading
- type LoadingPromise
- type Play
- type ViewName
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActiveViewChangedEvent ¶ added in v0.6.0
type ActiveViewChangedEvent struct{}
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func NewApplication ¶
func NewApplication(eventBus *mvc.EventBus) *Application
func (*Application) ActiveView ¶
func (a *Application) ActiveView() ViewName
func (*Application) SetActiveView ¶
func (a *Application) SetActiveView(view ViewName)
type ControllerChangedEvent ¶ added in v0.6.0
type ControllerChangedEvent struct{}
type EnvironmentChangedEvent ¶ added in v0.6.0
type EnvironmentChangedEvent struct{}
type Home ¶ added in v0.5.0
type Home struct {
// contains filtered or unexported fields
}
func (*Home) Controller ¶ added in v0.5.0
func (h *Home) Controller() data.Controller
func (*Home) Environment ¶ added in v0.5.0
func (h *Home) Environment() data.Environment
func (*Home) SetController ¶ added in v0.5.0
func (h *Home) SetController(controller data.Controller)
func (*Home) SetEnvironment ¶ added in v0.5.0
func (h *Home) SetEnvironment(environment data.Environment)
type HomeScene ¶ added in v0.5.0
type HomeScene struct { Scene *game.Scene DaySky *graphics.Sky DayAmbientLight *graphics.AmbientLight DayDirectionalLight *graphics.DirectionalLight NightSky *graphics.Sky NightAmbientLight *graphics.AmbientLight NightSpotLight *graphics.SpotLight }
type Loading ¶ added in v0.5.0
type Loading struct {
// contains filtered or unexported fields
}
func NewLoading ¶ added in v0.6.0
func (*Loading) NextViewName ¶ added in v0.5.0
func (*Loading) Promise ¶ added in v0.5.0
func (l *Loading) Promise() LoadingPromise
func (*Loading) SetNextViewName ¶ added in v0.5.0
func (*Loading) SetPromise ¶ added in v0.5.0
func (l *Loading) SetPromise(promise LoadingPromise)
type LoadingPromise ¶ added in v0.5.0
type LoadingPromise interface {
OnReady(func())
}
func ToLoadingPromise ¶ added in v0.6.0
func ToLoadingPromise[T any](promise async.Promise[T]) LoadingPromise
Click to show internal directories.
Click to hide internal directories.