Update ServerListResp to include HumanCount instead of PlayerCount
All checks were successful
CI - Build and Push / Build and Push Docker Image (push) Successful in 40s
All checks were successful
CI - Build and Push / Build and Push Docker Image (push) Successful in 40s
This commit is contained in:
@@ -187,7 +187,7 @@ type (
|
||||
ServerPort int `json:"serverPort"` // Server port
|
||||
Category string `json:"category"` // Server category
|
||||
MapName string `json:"mapName"` // Current map name
|
||||
PlayerCount int `json:"playerCount"` // Current player count
|
||||
HumanCount int `json:"humanCount"` // Current human player count
|
||||
BotCount int `json:"botCount"` // Bot count
|
||||
}
|
||||
)
|
||||
|
||||
@@ -44,7 +44,7 @@ func (l *ServerListLogic) ServerList(req *types.ServerListReq) (resp []types.Ser
|
||||
&server.ServerPort,
|
||||
&server.Category,
|
||||
&server.BotCount,
|
||||
&server.PlayerCount,
|
||||
&server.HumanCount,
|
||||
&server.MapName,
|
||||
)
|
||||
if err != nil {
|
||||
|
||||
@@ -75,7 +75,7 @@ type ServerListResp struct {
|
||||
ServerPort int `json:"serverPort"` // Server port
|
||||
Category string `json:"category"` // Server category
|
||||
MapName string `json:"mapName"` // Current map name
|
||||
PlayerCount int `json:"playerCount"` // Current player count
|
||||
HumanCount int `json:"humanCount"` // Current human player count
|
||||
BotCount int `json:"botCount"` // Bot count
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user