Example #1
0
func (packet *PC2ChatMessagePacket) Read(r proxy.BinaryReader) {
	packet.JsonData, _ = r.ReadString()
}
Example #2
0
// They must also define a Read method, to read the packet's values from the
// binary data stream, and a Write method to do the opposite.
func (packet *PS1ChatMessagePacket) Read(r proxy.BinaryReader) {
	// The second return value from r.Read*() will always be nil in this
	// context, so we can ignore it.
	packet.Message, _ = r.ReadString()
}