| 1234567891011121314151617181920212223242526272829303132 |
- package mapCall
- import (
- capp "f1-game/internal/cherry_app"
- nameActor "f1-game/internal/name/actor"
- nameRemote "f1-game/internal/name/remote"
- "f1-game/internal/pb"
- cfacade "github.com/cherry-game/cherry/facade"
- )
- var (
- Scout = &scoutCall{}
- )
- type scoutCall struct {
- }
- func (p *scoutCall) ScoutUpdateStatus(queueID, scoutType int32, playerID, endTime int64) int32 {
- req := &pb.ScoutRequest{
- QueueID: queueID,
- ScoutType: scoutType,
- PlayerID: playerID,
- EndTime: endTime,
- }
- return capp.CallWait(p.targetPath(), nameRemote.MapScout_UpdateStatus, req, nil)
- }
- func (p *scoutCall) targetPath() string {
- return cfacade.NewPath("", nameActor.Map_Scout)
- }
|