public static BowlingBallEventArgs Create(MessageBowlingBall msg) { //Log.Debug("middle {0} {1}", msg.Velocity, msg.Torque); BowlingBallEventArgs e = new BowlingBallEventArgs(); e.msg = msg; return(e); }
void OnBowlingBallHandler(object sender, GameEventArgs args) { BowlingBallEventArgs ne = args as BowlingBallEventArgs; if (ne != null) { Log.Debug("second {0} {1}", ne.msg.Velocity, ne.msg.Torque); } }