MCPcopy Create free account
hub / github.com/EngoEngine/engo / Drawables

Method Drawables

common/spritesheet.go:152–160  ·  view source on GitHub ↗

Drawables returns all the drawables on the sheet

()

Source from the content-addressed store, hash-verified

150
151// Drawables returns all the drawables on the sheet
152func (s *Spritesheet) Drawables() []Drawable {
153 drawables := make([]Drawable, s.CellCount())
154
155 for i := 0; i < s.CellCount(); i++ {
156 drawables[i] = s.Drawable(i)
157 }
158
159 return drawables
160}
161
162// CellCount returns the number of cells on the sheet
163func (s *Spritesheet) CellCount() int {

Callers 2

CreateHeroMethod · 0.80
CreateEntityMethod · 0.80

Calls 2

CellCountMethod · 0.95
DrawableMethod · 0.95

Tested by

no test coverage detected