ichigo/engine/misc.go

14 lines
363 B
Go
Raw Normal View History

2021-07-23 17:05:05 +10:00
package engine
2021-08-01 17:08:26 +10:00
// ID implements Identifier directly (as a string value).
type ID string
// Ident returns id as a string.
func (id ID) Ident() string { return string(id) }
2021-08-18 14:02:15 +10:00
// DrawOrder implements DrawOrderer directly (as a float64 value).
type DrawOrder float64
2021-07-23 17:05:05 +10:00
2021-08-18 14:02:15 +10:00
// DrawOrder returns z as a float64.
func (z DrawOrder) DrawOrder() float64 { return float64(z) }