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 16:34:51 +10:00
|
|
|
// Parallax implements ParallaxScaler directly (as a float64 value).
|
|
|
|
type Parallax float64
|
|
|
|
|
|
|
|
// ParallaxFactor returns s as a float64.
|
|
|
|
func (s Parallax) ParallaxFactor() float64 { return float64(s) }
|
|
|
|
|
|
|
|
// ZOrder implements DrawOrderer directly (as a float64 value).
|
|
|
|
type ZOrder float64
|
2021-07-23 17:05:05 +10:00
|
|
|
|
2021-08-18 14:02:15 +10:00
|
|
|
// DrawOrder returns z as a float64.
|
2021-08-18 16:34:51 +10:00
|
|
|
func (z ZOrder) DrawOrder() float64 { return float64(z) }
|