mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-07-01 23:41:23 -05:00
GameStats: Add getpd stub
This commit is contained in:
parent
8f964bb213
commit
5a4e49a188
21
gamestats/getpd.go
Normal file
21
gamestats/getpd.go
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
package gamestats
|
||||
|
||||
import (
|
||||
"strconv"
|
||||
"time"
|
||||
"wwfc/common"
|
||||
)
|
||||
|
||||
func (g *GameStatsSession) getpd(command common.GameSpyCommand) {
|
||||
g.Write(common.GameSpyCommand{
|
||||
Command: "getpdr",
|
||||
CommandValue: "1",
|
||||
OtherValues: map[string]string{
|
||||
"lid": strconv.Itoa(g.LoginID),
|
||||
"pid": command.OtherValues["pid"],
|
||||
"mod": strconv.Itoa(int(time.Now().Unix())),
|
||||
"length": "0",
|
||||
"data": `\\`,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
|
@ -156,6 +156,7 @@ func handleRequest(conn net.Conn) {
|
|||
return
|
||||
}
|
||||
|
||||
commands = session.handleCommand("getpd", commands, session.getpd)
|
||||
commands = session.handleCommand("setpd", commands, session.setpd)
|
||||
|
||||
for _, command := range commands {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user