////////////////////// /* HASHCODE SECTION */ ////////////////////// public override int GetHashCode() { if (hasHashCode && hashCode != 0) { return(hashCode); } int hashcode = 18; worldState.ClearHashCode(); hashcode = hashcode * 42 + worldState.GetHashCode(); hashcode = hashcode * 42 + counteract.GetHashCode(); hashCode = hashcode; hasHashCode = true; return(hashcode); }
public override int GetHashCode() { if (hasHashCode && hashCode != 0) { return(hashCode); } int hashcode = 18; hashcode = hashcode * 42 + goalTypeIsLocation.GetHashCode(); hashcode = hashcode * 42 + goalTypeIsPossession.GetHashCode(); hashcode = hashcode * 42 + goalTypeIsStatus.GetHashCode(); hashcode = hashcode * 42 + goalState.GetHashCode(); hashCode = hashcode; hasHashCode = true; return(hashcode); }