mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-06 18:27:20 -05:00
52f8cd6d0c
* Switched to json formatted characters * Added infrastructure for networking * Minor updates. * more updates for map engine/rendering * More map engine changes and fixes
19 lines
445 B
Go
19 lines
445 B
Go
package d2netpacket
|
|
|
|
import "github.com/OpenDiablo2/OpenDiablo2/d2networking/d2netpacket/d2netpackettype"
|
|
|
|
type UpdateServerInfoPacket struct {
|
|
Seed int64 `json:"seed"`
|
|
PlayerId string `json:"playerId"`
|
|
}
|
|
|
|
func CreateUpdateServerInfoPacket(seed int64, playerId string) NetPacket {
|
|
return NetPacket{
|
|
PacketType: d2netpackettype.UpdateServerInfo,
|
|
PacketData: UpdateServerInfoPacket{
|
|
Seed: seed,
|
|
PlayerId: playerId,
|
|
},
|
|
}
|
|
}
|