Пример #1
0
        public static BowlingBallEventArgs Create(MessageBowlingBall msg)
        {
            //Log.Debug("middle {0} {1}", msg.Velocity, msg.Torque);

            BowlingBallEventArgs e = new BowlingBallEventArgs();

            e.msg = msg;
            return(e);
        }
Пример #2
0
        /// <summary>
        /// 保龄球消息
        /// </summary>
        public static IMessage BowlingBall(byte hid, Vector3 velocity, Vector3 torque)
        {
            MessageBowlingBall msg = new MessageBowlingBall();

            msg.TimeStamp = SystemTime.LowClientNow();
            msg.Hid       = hid;
            msg.Velocity  = velocity;
            msg.Torque    = torque;

            return(msg);
        }