예제 #1
0
        public DefaultAttackData(float _attackSpeed, float _weaponAxisStart, float _weaponAxisEnd, IsRight _rightFunctionPointer, ArrayList _hitList)
        {
            m_fAttackSpeed     = _attackSpeed;
            m_fWeaponAxisStart = _weaponAxisStart;
            m_fWeaponAxisEnd   = _weaponAxisEnd;
            hitList            = _hitList;

            rightFunctionPointer = _rightFunctionPointer;
        }
예제 #2
0
        public override int GetHashCode()
        {
            int hashCode = 46551335;

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Variant_str);

            hashCode = hashCode * -1521134295 + IsRight.GetHashCode();
            return(hashCode);
        }
예제 #3
0
        public override int GetHashCode()
        {
            int idHash      = Id.ToString().GetHashCode();
            int qIdHash     = QuestionId.ToString().GetHashCode();
            int nameId      = Name.GetHashCode();
            int isRightHash = IsRight.ToString().GetHashCode();

            return(idHash + qIdHash + nameId + isRightHash);
        }
예제 #4
0
파일: Either.cs 프로젝트: PaulWild/FX
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = IsRight.GetHashCode();
                hashCode = (hashCode * 397) ^ EqualityComparer <L> .Default.GetHashCode(LeftValue);

                hashCode = (hashCode * 397) ^ EqualityComparer <R> .Default.GetHashCode(RightValue);

                return(hashCode);
            }
        }
 public void setAttackDirection(IsRight argIsRight)
 {
     rightFunctionPointer = argIsRight;
 }