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); } }
/* ******************** */ /* ******************** */ /* 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); }
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); }