示例#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)
}
示例#2
0
文件: player.go 项目: 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())
}