2020-06-13 18:32:09 -04:00
|
|
|
package d2netpacket
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/OpenDiablo2/OpenDiablo2/d2networking/d2netpacket/d2netpackettype"
|
|
|
|
)
|
|
|
|
|
|
|
|
type GenerateMapPacket struct {
|
2020-06-26 16:50:24 -04:00
|
|
|
ActId int `json:"actId"`
|
|
|
|
LevelId int `json:"levelId"`
|
2020-06-13 18:32:09 -04:00
|
|
|
}
|
|
|
|
|
2020-06-26 16:50:24 -04:00
|
|
|
func CreateGenerateMapPacket(actId, levelId int) NetPacket {
|
2020-06-13 18:32:09 -04:00
|
|
|
return NetPacket{
|
|
|
|
PacketType: d2netpackettype.GenerateMap,
|
|
|
|
PacketData: GenerateMapPacket{
|
2020-06-26 16:50:24 -04:00
|
|
|
ActId: actId,
|
|
|
|
LevelId: levelId,
|
2020-06-13 18:32:09 -04:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|