Exemplo n.º 1
0
func (frm *OutboundRegionUpdate) Decode(buf io.Reader, flags interface{}) (err error) {
	struc := (*anonymous_outbound_packets_bb_0)(frm)
	hdr := encoding.PacketHeader{
		Number: OutboundRegionUpdateDefinition.Number,
		Size:   OutboundRegionUpdateDefinition.Size,
		Object: struc,
	}
	return hdr.Decode(buf, flags)
}
Exemplo n.º 2
0
func (frm *OutboundPlayerInit) Encode(buf io.Writer, flags interface{}) (err error) {
	struc := (*anonymous_outbound_packets_bb_2)(frm)
	hdr := encoding.PacketHeader{
		Number: OutboundPlayerInitDefinition.Number,
		Size:   OutboundPlayerInitDefinition.Size,
		Object: struc,
	}
	return hdr.Encode(buf, flags)
}
Exemplo n.º 3
0
func (frm *InboundPlayerWalk) Decode(buf io.Reader, flags interface{}) (err error) {
	struc := (*InboundPlayerWalkBlock)(frm)
	hdr := encoding.PacketHeader{
		Number: InboundPlayerWalkDefinition.Number,
		Size:   InboundPlayerWalkDefinition.Size,
		Object: struc,
	}
	return hdr.Decode(buf, flags)
}
Exemplo n.º 4
0
func (frm *InboundPing) Decode(buf io.Reader, flags interface{}) (err error) {
	struc := (*anonymous_inbound_packets_bb_0)(frm)
	hdr := encoding.PacketHeader{
		Number: InboundPingDefinition.Number,
		Size:   InboundPingDefinition.Size,
		Object: struc,
	}
	return hdr.Decode(buf, flags)
}
Exemplo n.º 5
0
func (frm *PlayerUpdate) Decode(buf io.Reader, flags interface{}) (err error) {
	struc := (*PlayerUpdateBlock)(frm)
	hdr := encoding.PacketHeader{
		Number: PlayerUpdateDefinition.Number,
		Size:   PlayerUpdateDefinition.Size,
		Object: struc,
	}
	return hdr.Decode(buf, flags)
}