Documentation ¶
Index ¶
- type GOMap
- func (m *GOMap) Draw(screen *ebiten.Image) error
- func (m *GOMap) Get(name string) (i any, ok bool)
- func (m *GOMap) Register(name string, gameObject any) error
- func (m *GOMap) SetupGame(gameBase interfaces.IGameBase)
- func (m *GOMap) StartQueuedStartables() error
- func (m *GOMap) Unregister(name string) error
- func (m *GOMap) UnregisterAll() error
- func (m *GOMap) Update() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GOMap ¶
type GOMap struct {
// contains filtered or unexported fields
}
GOMap stands for GameObject Map. GameObject map defines map with the game objects. Also, defines all the GameObjectBase functional, functions like Start(), Update(), Draw(), etc.
func (*GOMap) Register ¶
Registers a new game object. If Awake() function implemented, it will be called. This will be applied to all the components of the game object.
func (*GOMap) SetupGame ¶
func (m *GOMap) SetupGame(gameBase interfaces.IGameBase)
Must be called before all the operations.
func (*GOMap) StartQueuedStartables ¶
One-time function, that must be called from Scene.Enter() only once. Starts all the queued startables, that implements StartableQueued interface.
func (*GOMap) Unregister ¶
Unregisters the game object. If Destroy() function implemented, it will be called. This will be applied to all the components of the game object.
func (*GOMap) UnregisterAll ¶
Unregisters all the game objects.