예제 #1
0
파일: update_client.go 프로젝트: gemrs/gem
// 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())
}