AudioEvents.GetHashCode C# (CSharp) 메소드

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int
    public override int GetHashCode()
    {
        int hashCode=0;
        for(int i=0; i<curves.Count; ++i){
            if(curves[i].list != null){
                for(int j=0; j<curves[i].list.Count; ++j){
                    hashCode += j*(curves[i].list[j].audioPos.GetHashCode() + curves[i].list[j].speed.GetHashCode());
                }
            }
        }

        for(int i=0; i<triggers.Count; ++i){
            hashCode += triggers[i].audioPos.GetHashCode();
            hashCode += triggers[i].methodName.GetHashCode();
        }
        return hashCode;
    }