예제 #1
0
        public void Broadcast(string evt, object data)
        {
            Console.WriteLine(data);
            ReneCommunicatorBroadcast rcb = new ReneCommunicatorBroadcast();

            rcb.Event = evt;
            rcb.Data  = data;

            if (BroadcastReceived != null)
            {
                BroadcastReceived(rcb, null);
            }
        }
예제 #2
0
        /* ******************** */
        /* ******************** */
        /* Game Engine Calls */
        /* ******************** */
        /* ******************** */
        #region Custom
        public void TankMove(string evt, User sender, double x, double y)
        {
            ReneCommunicatorBroadcast rcb = new ReneCommunicatorBroadcast();

            rcb.Event  = evt;
            rcb.Data   = new Vector(x, y);
            rcb.sender = sender;

            if (BroadcastReceived != null)
            {
                BroadcastReceived(rcb, null);
            }
            //this.BroadcastEvent.Invoke(rcb, null);
        }
예제 #3
0
        public void Broadcast(string evt, User sender, object data)
        {
            Console.WriteLine(data);
            ReneCommunicatorBroadcast rcb = new ReneCommunicatorBroadcast();

            rcb.Event  = evt;
            rcb.Data   = data;
            rcb.sender = sender;

            if (BroadcastReceived != null)
            {
                BroadcastReceived(rcb, null);
            }
            //this.BroadcastEvent.Invoke(rcb, null);
        }