Exemplo n.º 1
0
        public static SwingHolder GetSwing(SaberSwingRatingCounter ssrc)
        {
            SwingHolder sh = swings.Find((s) => s.ssrc == ssrc);

            swings.Remove(sh);
            return(sh);
        }
Exemplo n.º 2
0
        public static void AddPostswing(SaberSwingRatingCounter ssrc, float swing)
        {
            SwingHolder sh = swings.Find((s) => s.ssrc == ssrc);

            if (sh != null)
            {
                sh.AddPostSwing(swing);
            }
        }
Exemplo n.º 3
0
            public void HandleSaberSwingRatingCounterDidFinish(ISaberSwingRatingCounter s)
            {
                ScoreModel.RawScoreWithoutMultiplier(s, n.info.cutDistanceToCenter, out int before, out int after, out int accuracy);

                SwingHolder sh = SwingTranspilerHandler.GetSwing(s as SaberSwingRatingCounter);

                if (sh != null)
                {
                    n.preswing  = sh.preswing;
                    n.postswing = sh.postswing;
                }

                n.score         = new int[] { before, accuracy, after };
                n.timeDeviation = n.info.timeDeviation;
                n.speed         = n.info.saberSpeed;
                n.cutPoint      = Utils.FloatArrayFromVector(n.info.cutPoint);
                n.saberDir      = Utils.FloatArrayFromVector(n.info.saberDir);

                n.info.swingRatingCounter.UnregisterDidFinishReceiver(this);
            }