Example #1
0
// Encode writes encoding.Encodables to the client's buffer
func (client *UpdateClient) Encode(codable encoding.Encodable) error {
	return codable.Encode(client.Conn().WriteBuffer, nil)
}
Example #2
0
File: player.go Project: gemrs/gem
// Encode writes encoding.Encodables to the client's buffer using the outbound rand generator
func (client *Player) Encode(codable encoding.Encodable) error {
	return codable.Encode(client.Conn().WriteBuffer, client.ISAACOut())
}