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.

21 lines
304 B
Go

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