Esempio n. 1
0
        private void HandleThrow(ILocalGame game)
        {
            float force;

            if (!m_reader.ReadThrow(out force))
            {
                RaiseInvalidStream("Failed to read throw");
                return;
            }

            game.Throw(force);
        }
Esempio n. 2
0
        private void HandleThrowDebug(ILocalGame game)
        {
            float force2, startRotation;

            if (!m_reader.ReadThrowDebug(out force2, out startRotation))
            {
                RaiseInvalidStream("Failed to read throw debug");
                return;
            }

            if (game.knifeRotation != startRotation)
            {
                RaiseGameOutOfSync(game.knifeRotation - startRotation);
            }

            game.Throw(force2);
        }