public override int GetHashCode() { var hash = interactable.GetHashCode(); hash = hash * 37 + transition.GetHashCode(); hash = hash * 37 + navigation.GetHashCode(); hash = hash * 37 + (targetGraphic?.GetHashCode() ?? 0); hash = hash * 37 + colors.GetHashCode(); hash = hash * 37 + spriteStates.GetHashCode(); if (animationTriggers != null) { hash = hash * 37 + animationTriggers.GetHashCode(); } hash = hash * 37 + enabled.GetHashCode(); hash = hash * 37 + ComputeHashCode(); return(hash); }
private string GetSchemaName(Graphic graphic) { return graphic.GetHashCode().ToString() + "schemaid"; }