Documentation
¶
Index ¶
- func StartAll(grpcAddr, webAddr string, e *services.SimulationEngine, tickRate time.Duration)
- type SimulationServer
- func (s *SimulationServer) BroadcastState(st *pb.WorldState)
- func (s *SimulationServer) Connect(stream pb.BotService_ConnectServer) error
- func (s *SimulationServer) GetMatchHighlights(ctx context.Context, req *pb.ReplayRequest) (*pb.HighlightsData, error)
- func (s *SimulationServer) GetMatchReplay(ctx context.Context, req *pb.ReplayRequest) (*pb.ReplayData, error)
- func (s *SimulationServer) HandleDashboardWS(w http.ResponseWriter, r *http.Request)
- func (s *SimulationServer) ListActiveMatches(ctx context.Context, req *pb.Empty) (*pb.MatchList, error)
- func (s *SimulationServer) ListMatches(ctx context.Context, req *pb.Empty) (*pb.MatchList, error)
- func (s *SimulationServer) StartSimulation(ctx context.Context, cfg *pb.ArenaConfig) (*pb.SimulationResponse, error)
- func (s *SimulationServer) StopSimulation(ctx context.Context, req *pb.StopSimulationRequest) (*pb.SimulationResponse, error)
- func (s *SimulationServer) WatchMatch(req *pb.MatchRequest, stream pb.MatchService_WatchMatchServer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SimulationServer ¶
type SimulationServer struct {
pb.UnimplementedBotServiceServer
pb.UnimplementedSimulationServiceServer
pb.UnimplementedMatchServiceServer
TickRate time.Duration
// contains filtered or unexported fields
}
func NewSimulationServer ¶
func NewSimulationServer(e *services.SimulationEngine, tickRate time.Duration) *SimulationServer
func (*SimulationServer) BroadcastState ¶
func (s *SimulationServer) BroadcastState(st *pb.WorldState)
func (*SimulationServer) Connect ¶
func (s *SimulationServer) Connect(stream pb.BotService_ConnectServer) error
func (*SimulationServer) GetMatchHighlights ¶
func (s *SimulationServer) GetMatchHighlights(ctx context.Context, req *pb.ReplayRequest) (*pb.HighlightsData, error)
func (*SimulationServer) GetMatchReplay ¶
func (s *SimulationServer) GetMatchReplay(ctx context.Context, req *pb.ReplayRequest) (*pb.ReplayData, error)
func (*SimulationServer) HandleDashboardWS ¶
func (s *SimulationServer) HandleDashboardWS(w http.ResponseWriter, r *http.Request)
func (*SimulationServer) ListActiveMatches ¶
func (*SimulationServer) ListMatches ¶
func (*SimulationServer) StartSimulation ¶
func (s *SimulationServer) StartSimulation(ctx context.Context, cfg *pb.ArenaConfig) (*pb.SimulationResponse, error)
func (*SimulationServer) StopSimulation ¶
func (s *SimulationServer) StopSimulation(ctx context.Context, req *pb.StopSimulationRequest) (*pb.SimulationResponse, error)
func (*SimulationServer) WatchMatch ¶
func (s *SimulationServer) WatchMatch(req *pb.MatchRequest, stream pb.MatchService_WatchMatchServer) error
Click to show internal directories.
Click to hide internal directories.