package cli import ( nameRoute "f1-game/internal/name/route" "f1-game/internal/pb" "math/rand" ctime "github.com/cherry-game/cherry/extend/time" ) func (p *Robot) Time() { req := &pb.None{} rsp := &pb.I64{} err := p.RequestResponse(nameRoute.GamePlayer_Time, req, rsp) if err != nil { p.Debugf("[Time] err = %v", err) return } p.Debugf("[Time] rsp = %v", ctime.NewMillisecond(rsp.Value).ToMillisecond()) } func (p *Robot) GuideUpdate() { req := &pb.I32I32{ Key: 1, Value: rand.Int31n(10), } p.Notify(nameRoute.GamePlayer_SetGuide, req) }