scene

package
v0.0.0-...-e7326f8 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scene

type Scene struct {
	CurrentMainCamera interfaces.ICamera
	// contains filtered or unexported fields
}

func New

func New(enterF interfaces.SceneF, exitF interfaces.SceneF) *Scene

func (*Scene) Enter

func (s *Scene) Enter() error

Called when scene is entered by game.

func (*Scene) Exit

func (s *Scene) Exit() error

Called when exiting from scene.

func (*Scene) GetGOMap

func (s *Scene) GetGOMap() interfaces.IGOMap

func (*Scene) GetMainCamera

func (s *Scene) GetMainCamera() interfaces.ICamera

func (*Scene) GetPhysSystem

func (s *Scene) GetPhysSystem() interfaces.IPhysSystem

func (*Scene) SetEnterF

func (s *Scene) SetEnterF(enterF interfaces.SceneF)

Set ups the Enter() function handler

func (*Scene) SetExitF

func (s *Scene) SetExitF(exitF interfaces.SceneF)

Set ups the Exit() function handler

func (*Scene) SetMainCamera

func (s *Scene) SetMainCamera(cam interfaces.ICamera) error

Jump to

Keyboard shortcuts

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