Ejemplo n.º 1
0
    /*
     *      Function: OnChangeMap
     *
     *      Receives map change info from host and send to all clients
     *
     *      Parameters:
     *
     *              msg1 - the message received from the caller
     *
     *      Returns:
     *
     *              void
     */


    void OnChangeMap(NetworkMessage msg1)
    {
        int        mapValue = msg1.ReadMessage <mapMessage> ().getMessage();
        mapMessage msg      = new mapMessage();

        msg.newMessage(mapValue);
        NetworkServer.SendToAll(Message.CHANGE_MAP, msg);
    }
Ejemplo n.º 2
0
	/*
		Function: OnChangeMap

		Receives map change info from host and send to all clients

		Parameters:

			msg1 - the message received from the caller
			
		Returns:

			void
	*/
	

	void OnChangeMap(NetworkMessage msg1)
	{
		int mapValue = msg1.ReadMessage<mapMessage> ().getMessage ();
		mapMessage msg = new mapMessage ();
		msg.newMessage (mapValue);
		NetworkServer.SendToAll(Message.CHANGE_MAP,msg);
	}