package types

// GetBytes is a helper for serialising
func (p <%= packetName.PascalCase %>PacketData) GetBytes() ([]byte, error) {
	var modulePacket <%= title(moduleName) %>PacketData

	modulePacket.Packet = &<%= title(moduleName) %>PacketData_<%= packetName.PascalCase %>Packet{&p}

	return modulePacket.Marshal()
}