public override int GetHashCode() { int hash = 1; if (Type != global::Networking.Protocols.Protobuf.AthletesResponse.Types.ResponseType.Unknown) { hash ^= Type.GetHashCode(); } if (Error.Length != 0) { hash ^= Error.GetHashCode(); } if (child_ != null) { hash ^= Child.GetHashCode(); } hash ^= listOfEvents_.GetHashCode(); if (ChildCount != 0) { hash ^= ChildCount.GetHashCode(); } hash ^= listOfChildren_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override string ToString() { if (IsDummy) { return("This is a dummy record."); } StringBuilder introduction = new StringBuilder("My names are: "); introduction.Append(GetNamesString()); introduction.Append(" . "); introduction.Append("My description is: "); introduction.Append(Description); introduction.Append(" . "); if (null != Parent) { introduction.Append("My parent's name is: "); introduction.Append(((YHaplo)Parent).PrimaryName); introduction.Append(" . "); } else { introduction.Append("I have no parent. "); } introduction.Append("I have "); introduction.Append(ChildCount.ToString()); introduction.Append(" children."); return(introduction.ToString()); }
public override int GetHashCode() { unchecked { int hashCode = base.GetHashCode(); hashCode = (hashCode * 397) ^ (int)GenerateActionType; hashCode = (hashCode * 397) ^ ChildCount.GetHashCode(); hashCode = (hashCode * 397) ^ (ArtifactType != null ? ArtifactType.GetHashCode() : 0); hashCode = (hashCode * 397) ^ ArtifactTypeId.GetHashCode(); return(hashCode); } }
void Update() { //子供がいるかいないか if (this.transform.childCount == 0) { childmode = ChildCount.none; } else { childmode = ChildCount.child; } SwayMove(); }
void Update() { //子供がいるかいないか if (this.transform.childCount == 0) { childmode = ChildCount.none; } else { childmode = ChildCount.child; this.gameObject.transform.GetChild(0).tag = "target"; } SwayMove(); }
/// <summary> /// Initializes a new instance of the <see cref="Segment"/> class. /// </summary> /// <param name="t">The TransactionSet.</param> /// <param name="i">Line to start from, within the file.</param> /// <param name = "segmentInfo"></param> /// <param name="Parent">Parent Segment</param> public Segment(Collection <Segment> t, ref int i, SegmentInfo segmentInfo) : this(t[i].LineText, t[i].LineNumber) { this.Info = segmentInfo; if (segmentInfo.SegmentType == SegmentType.Segment) { i++; return; } //Itterate Child Segments this.ChildSegments = new Collection <Segment>(); for (i++; i < t.Count; i++) { var currentInfo = GetSegmentInfo(t[i], segmentInfo); if (currentInfo.Initialized) { //Add This Child Segment to the ChildCount if (ChildCount == null) { ChildCount = new Dictionary <Guid, Int16>(); } if (ChildCount.ContainsKey(currentInfo.InfoId)) { ChildCount[currentInfo.InfoId]++; } else { ChildCount.Add(currentInfo.InfoId, 1); } //Check for Repeat Overflow if (currentInfo.Repeat != -1 && ChildCount[currentInfo.InfoId] > currentInfo.Repeat) { this.Error = string.Intern(t[i].Id + "*" + t[i].Element(1) + " has exceded the repeat maximum of (" + currentInfo.Repeat + ") specified in the format guide. " + ChildCount[currentInfo.InfoId]); } //Create the segment and add it. ChildSegments.Add(new Segment(t, ref i, currentInfo)); --i; } else { return; } } }
public override int GetHashCode() { int hashcode = 157; unchecked { if (__isset.metaID) { hashcode = (hashcode * 397) + MetaID.GetHashCode(); } if (__isset.parentID) { hashcode = (hashcode * 397) + ParentID.GetHashCode(); } if (__isset.childCount) { hashcode = (hashcode * 397) + ChildCount.GetHashCode(); } if (__isset.isSmallSet) { hashcode = (hashcode * 397) + IsSmallSet.GetHashCode(); } } return(hashcode); }
protected bool Equals(IeGenerateAction other) { return(base.Equals(other) && GenerateActionType == other.GenerateActionType && ChildCount.GetValueOrDefault() == other.ChildCount.GetValueOrDefault() && string.Equals(ArtifactType, other.ArtifactType) && ArtifactTypeId.GetValueOrDefault() == other.ArtifactTypeId.GetValueOrDefault()); }
protected override void OnChildDataSetsCreated() { ChildCount.ComputedAs(Child.Id.CountRows(), false); base.OnChildDataSetsCreated(); }