Documentation ¶
Index ¶
- type Scene
- func (s *Scene) Draw(target pixel.Target)
- func (s *Scene) GetLevelMap() consts.LevelMap
- func (s *Scene) GetObjectByID(id int64) interfaces.SceneObject
- func (s *Scene) GetObjects() []interfaces.SceneObject
- func (s *Scene) GetSceneMap() interfaces.SceneMap
- func (s *Scene) GetSpawner() interfaces.Spawner
- func (s *Scene) MakeEmptyObj(objType consts.ObjectType) interfaces.SceneObject
- func (s *Scene) RemoveObject(id int64)
- func (s *Scene) SetLevelMap(level consts.LevelMap)
- func (s *Scene) SetSceneObjects(objects []interfaces.SceneObject)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scene ¶
type Scene struct {
// contains filtered or unexported fields
}
func NewScene ¶
func NewScene(spawner interfaces.Spawner) *Scene
func (*Scene) GetLevelMap ¶
func (*Scene) GetObjectByID ¶
func (s *Scene) GetObjectByID(id int64) interfaces.SceneObject
func (*Scene) GetObjects ¶
func (s *Scene) GetObjects() []interfaces.SceneObject
func (*Scene) GetSceneMap ¶
func (s *Scene) GetSceneMap() interfaces.SceneMap
func (*Scene) GetSpawner ¶
func (s *Scene) GetSpawner() interfaces.Spawner
func (*Scene) MakeEmptyObj ¶
func (s *Scene) MakeEmptyObj(objType consts.ObjectType) interfaces.SceneObject
func (*Scene) RemoveObject ¶
func (*Scene) SetLevelMap ¶
func (*Scene) SetSceneObjects ¶
func (s *Scene) SetSceneObjects(objects []interfaces.SceneObject)
Click to show internal directories.
Click to hide internal directories.