int ComputeHash() { var hashCode = new MadHashCode(); hashCode.Add(configuration); hashCode.Add(hideManagedObjects); hashCode.Add(setupMethod); hashCode.Add(iconTemplate); hashCode.Add(iconScale); hashCode.Add(iconOffset); hashCode.Add(leftSlideSprite); hashCode.Add(leftSlideScale); hashCode.Add(leftSlideOffset); hashCode.Add(rightSlideSprite); hashCode.Add(rightSlideScale); hashCode.Add(rightSlideOffset); hashCode.Add(gridWidth); hashCode.Add(gridHeight); hashCode.Add(pixelsWidth); hashCode.Add(pixelsHeight); hashCode.Add(pagesOffsetManual); hashCode.Add(pagesOffsetFromResolution); return(hashCode.GetHashCode()); }
int ConfigurationHash() { var hash = new MadHashCode(); hash.Add(bulletTextureOff); hash.Add(bulletTextureOn); hash.Add(hideManagedObjects); hash.Add(bulletDistance); hash.Add(guiDepth); if (draggable != null) { hash.Add(draggable.dragStopCount); } return(hash.GetHashCode()); }
// =========================================================== // Methods // =========================================================== public override int GetHashCode() { var hash = new MadHashCode(); hash.Add(texture); hash.Add(glyphs); hash.Add(linesCount); hash.Add(fillFactorTolerance); hash.Add(createStatus); hash.Add(created); hash.Add(material); hash.Add(dimensions); return(hash.GetHashCode()); }