You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
288 B
Go

package sim
import (
"time"
"github.com/jordanorelli/blammo"
)
// player represents a player character in the simulation
type player struct {
*blammo.Log
entityID int
}
func (p *player) update(dt time.Duration) {
p.Info("tick")
}
func (p *player) id() int { return p.entityID }