1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-12-28 04:56:26 -05:00
OpenDiablo2/d2networking/d2netpacket/packet_generate_map.go

21 lines
459 B
Go
Raw Normal View History

package d2netpacket
import (
"github.com/OpenDiablo2/OpenDiablo2/d2common/d2enum"
"github.com/OpenDiablo2/OpenDiablo2/d2networking/d2netpacket/d2netpackettype"
)
type GenerateMapPacket struct {
2020-06-19 02:19:27 -04:00
RegionType d2enum.RegionIdType `json:"regionType"`
}
2020-06-19 02:19:27 -04:00
func CreateGenerateMapPacket(regionType d2enum.RegionIdType) NetPacket {
return NetPacket{
PacketType: d2netpackettype.GenerateMap,
PacketData: GenerateMapPacket{
2020-06-19 02:19:27 -04:00
RegionType: regionType,
},
}
}