Exemple #1
0
        private string GetChainName(PrimaryActions primaryAction, SecondaryActions secondaryActions)
        {
            if (aimingVector.X != 0 || aimingVector.Y != 0)
            {
                var direction = TopDownDirectionExtensions.FromDirection(new Vector2(aimingVector.X, aimingVector.Y), PossibleDirections.EightWay);


                return(ChainNameHelperMethods.GenerateChainName(primaryAction, null, direction));
            }
            else
            {
                return(ChainNameHelperMethods.GenerateChainName(primaryAction, null, TopDownDirection.Right));
            }
        }
Exemple #2
0
        private string GetChainName(PrimaryActions primaryAction, SecondaryActions secondaryAction = SecondaryActions.None)
        {
            Weapon?weapon = null;

            if (secondaryAction == SecondaryActions.Shooting)
            {
                weapon = EquippedWeapon;
            }
            if (aimingVector.X != 0 || aimingVector.Y != 0)
            {
                var direction = TopDownDirectionExtensions.FromDirection(new Vector2(aimingVector.X, aimingVector.Y), PossibleDirections.EightWay);

                return(ChainNameHelperMethods.GenerateChainName(primaryAction, weapon, direction));
            }
            else
            {
                return(ChainNameHelperMethods.GenerateChainName(primaryAction, weapon, TopDownDirection.Right));
            }
        }