Documentation
¶
Index ¶
- Constants
- type AnimationDC6
- func (a *AnimationDC6) Advance(elapsed time.Duration)
- func (a *AnimationDC6) BoundingBoxOfAllFrames() image.Rectangle
- func (a *AnimationDC6) BoundingBoxOfAllLayers() (r image.Rectangle)
- func (a *AnimationDC6) BoundingBoxOfCurrentFrame() image.Rectangle
- func (a *AnimationDC6) BoundingBoxOfCurrentLayer() image.Rectangle
- func (a *AnimationDC6) CurrentFrameIndex() int
- func (a *AnimationDC6) CurrentLayerIndex() int
- func (a *AnimationDC6) Destroy()
- func (a *AnimationDC6) Direction() int
- func (a *AnimationDC6) Duration() time.Duration
- func (a *AnimationDC6) FramesPerSecond() float32
- func (a *AnimationDC6) LoopCount() int
- func (a *AnimationDC6) LoopingMode() LoopingMode
- func (a *AnimationDC6) NumDirections() int
- func (a *AnimationDC6) NumFrames() int
- func (a *AnimationDC6) NumLayers() int
- func (a *AnimationDC6) NumTimesLooped() int
- func (a *AnimationDC6) Pause()
- func (a *AnimationDC6) Play()
- func (a *AnimationDC6) Renderable() raylibRenderer.Renderable
- func (a *AnimationDC6) SetCurrentFrameIndex(i int)
- func (a *AnimationDC6) SetCurrentLayerIndex(i int)
- func (a *AnimationDC6) SetDirection(i int)
- func (a *AnimationDC6) SetDuration(duration time.Duration)
- func (a *AnimationDC6) SetFramesPerSecond(f float32)
- func (a *AnimationDC6) SetLoopCount(i int)
- func (a *AnimationDC6) SetLoopingMode(m LoopingMode)
- func (a *AnimationDC6) SetPlayMode(mode PlayMode)
- func (a *AnimationDC6) SetSubLoopFrames(indices []int)
- func (a *AnimationDC6) SetSubLoopRange(firstFrame, lastFrame int)
- func (a *AnimationDC6) Start()
- func (a *AnimationDC6) Stop()
- func (a *AnimationDC6) SubLoopFrames() []int
- func (a *AnimationDC6) SubLoopRange() (firstFrame, lastFrame int)
- type Dependency
- type InputState
- type Key
- type LoopingMode
- type ManagesGui
- type ModifierKey
- type MouseButton
- type PlayMode
- type Service
- func (s *Service) ConfigFileName() string
- func (s *Service) DefaultConfig() (cfg configFile.Config)
- func (s *Service) DependenciesResolved() bool
- func (s *Service) ExportToLua(state *lua.LState)
- func (s *Service) Init(mesh servicemesh.Mesh)
- func (s *Service) LoadConfig(config *configFile.Config)
- func (s *Service) Logger() *slog.Logger
- func (s *Service) Name() string
- func (s *Service) NewAnimationDC6(dc6Path, pl2Path string) (*AnimationDC6, error)
- func (s *Service) NewTileSprite(dc6Path, pl2Path string, gridWidth, gridHeight int) (ts *TileSprite, err error)
- func (s *Service) Ready() bool
- func (s *Service) ResolveDependencies(services []servicemesh.Service)
- func (s *Service) SetLogger(logger *slog.Logger)
- func (s *Service) UnexportFromLua(state *lua.LState)
- type TileSprite
Constants ¶
View Source
const ( Stopped transportMode = iota Playing Paused )
View Source
const LoopForever = -1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnimationDC6 ¶
func (*AnimationDC6) Advance ¶
func (a *AnimationDC6) Advance(elapsed time.Duration)
func (*AnimationDC6) BoundingBoxOfAllFrames ¶
func (a *AnimationDC6) BoundingBoxOfAllFrames() image.Rectangle
BoundingBoxOfAllFrames returns the bounding box that encompasses all frames in the animation.
func (*AnimationDC6) BoundingBoxOfAllLayers ¶
func (a *AnimationDC6) BoundingBoxOfAllLayers() (r image.Rectangle)
BoundingBoxOfAllLayers returns the bounding box that encompasses all frames in all layers (directions).
func (*AnimationDC6) BoundingBoxOfCurrentFrame ¶
func (a *AnimationDC6) BoundingBoxOfCurrentFrame() image.Rectangle
BoundingBoxOfCurrentFrame returns the bounding box of the current frame.
func (*AnimationDC6) BoundingBoxOfCurrentLayer ¶
func (a *AnimationDC6) BoundingBoxOfCurrentLayer() image.Rectangle
BoundingBoxOfCurrentLayer returns the bounding box that encompasses all frames in the current layer (direction).
func (*AnimationDC6) CurrentFrameIndex ¶
func (a *AnimationDC6) CurrentFrameIndex() int
func (*AnimationDC6) CurrentLayerIndex ¶
func (a *AnimationDC6) CurrentLayerIndex() int
func (*AnimationDC6) Destroy ¶
func (a *AnimationDC6) Destroy()
func (*AnimationDC6) Direction ¶
func (a *AnimationDC6) Direction() int
func (*AnimationDC6) Duration ¶
func (a *AnimationDC6) Duration() time.Duration
func (*AnimationDC6) FramesPerSecond ¶
func (a *AnimationDC6) FramesPerSecond() float32
func (*AnimationDC6) LoopCount ¶
func (a *AnimationDC6) LoopCount() int
func (*AnimationDC6) LoopingMode ¶
func (a *AnimationDC6) LoopingMode() LoopingMode
func (*AnimationDC6) NumDirections ¶
func (a *AnimationDC6) NumDirections() int
func (*AnimationDC6) NumFrames ¶
func (a *AnimationDC6) NumFrames() int
func (*AnimationDC6) NumLayers ¶
func (a *AnimationDC6) NumLayers() int
func (*AnimationDC6) NumTimesLooped ¶
func (a *AnimationDC6) NumTimesLooped() int
func (*AnimationDC6) Pause ¶
func (a *AnimationDC6) Pause()
func (*AnimationDC6) Play ¶
func (a *AnimationDC6) Play()
func (*AnimationDC6) Renderable ¶
func (a *AnimationDC6) Renderable() raylibRenderer.Renderable
func (*AnimationDC6) SetCurrentFrameIndex ¶
func (a *AnimationDC6) SetCurrentFrameIndex(i int)
func (*AnimationDC6) SetCurrentLayerIndex ¶
func (a *AnimationDC6) SetCurrentLayerIndex(i int)
func (*AnimationDC6) SetDirection ¶
func (a *AnimationDC6) SetDirection(i int)
func (*AnimationDC6) SetDuration ¶
func (a *AnimationDC6) SetDuration(duration time.Duration)
func (*AnimationDC6) SetFramesPerSecond ¶
func (a *AnimationDC6) SetFramesPerSecond(f float32)
func (*AnimationDC6) SetLoopCount ¶
func (a *AnimationDC6) SetLoopCount(i int)
func (*AnimationDC6) SetLoopingMode ¶
func (a *AnimationDC6) SetLoopingMode(m LoopingMode)
func (*AnimationDC6) SetPlayMode ¶
func (a *AnimationDC6) SetPlayMode(mode PlayMode)
func (*AnimationDC6) SetSubLoopFrames ¶
func (a *AnimationDC6) SetSubLoopFrames(indices []int)
func (*AnimationDC6) SetSubLoopRange ¶
func (a *AnimationDC6) SetSubLoopRange(firstFrame, lastFrame int)
func (*AnimationDC6) Start ¶
func (a *AnimationDC6) Start()
func (*AnimationDC6) Stop ¶
func (a *AnimationDC6) Stop()
func (*AnimationDC6) SubLoopFrames ¶
func (a *AnimationDC6) SubLoopFrames() []int
func (*AnimationDC6) SubLoopRange ¶
func (a *AnimationDC6) SubLoopRange() (firstFrame, lastFrame int)
type Dependency ¶
type Dependency = ManagesGui
type InputState ¶
type InputState struct { Keys []Key ModifierKeys []ModifierKey MouseButtons []MouseButton MouseCursor image.Point }
type LoopingMode ¶
type LoopingMode int
const ( NotLooping LoopingMode = iota Looping LoopingSpecificFrames )
type ManagesGui ¶
type ManagesGui interface { servicemesh.Service // contains filtered or unexported methods }
type ModifierKey ¶
type ModifierKey int
type MouseButton ¶
type MouseButton int
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) ConfigFileName ¶
func (*Service) DefaultConfig ¶
func (s *Service) DefaultConfig() (cfg configFile.Config)
func (*Service) DependenciesResolved ¶
func (*Service) ExportToLua ¶
func (*Service) Init ¶
func (s *Service) Init(mesh servicemesh.Mesh)
func (*Service) LoadConfig ¶
func (s *Service) LoadConfig(config *configFile.Config)
func (*Service) NewAnimationDC6 ¶
func (s *Service) NewAnimationDC6(dc6Path, pl2Path string) (*AnimationDC6, error)
func (*Service) NewTileSprite ¶
func (s *Service) NewTileSprite(dc6Path, pl2Path string, gridWidth, gridHeight int) (ts *TileSprite, err error)
func (*Service) ResolveDependencies ¶
func (s *Service) ResolveDependencies(services []servicemesh.Service)
func (*Service) UnexportFromLua ¶
type TileSprite ¶
func (*TileSprite) Renderable ¶
func (ts *TileSprite) Renderable() raylibRenderer.Renderable
Click to show internal directories.
Click to hide internal directories.