コード例 #1
0
//SendMessage sends the message to every player on the server
func (server *Server) SendMessage(msg *message.Message) {
	server.QueuePacket(protocol.ServerMessage{msg.JSONString()})
}
コード例 #2
0
//Sends a message to the player
func (p *Player) SendMessage(msg *message.Message) {
	p.QueuePacket(protocol.ServerMessage{msg.JSONString()})
}