private static void OnFixedRemove(object sender, FixedBallManager.FixedRemoveArgs msg) { Msg_AgarFixedBall r = new Msg_AgarFixedBall(); r.Operat = Msg_AgarFixedBall.Remove; r.BallId = msg.BallId; SendMessage(AgarServer, r); }
private static void OnFixedCreate(object sender, FixedBallManager.FixedCreateArgs msg) { Msg_AgarFixedBall r = new Msg_AgarFixedBall(); r.Operat = Msg_AgarFixedBall.Add; r.BallId = msg.BallId; r.X = msg.Ball.X; r.Y = msg.Ball.Y; r.Radius = msg.Ball.Radius; r.Color = msg.Ball.Color; SendMessage(AgarServer, r); }