// Sets the field's friction to the given amount // 0 < X < 1 : oil-ish // X == 1 : natural // X > 1 : sticky public void AddLiquid(Liquid liquid) { if (liquid > 0) { underThis.Friction = (liquid.GetHashCode()); } Console.WriteLine("Invalidate AddLiquid"); Graphic.Invalidate(); }
public override int GetHashCode() { int result = 13; result = result * 7 + IsActive.GetHashCode(); result = result * 7 + Type.GetHashCode(); result = result * 7 + Wall.GetHashCode(); result = result * 7 + IsLighted.GetHashCode(); result = result * 7 + Liquid.GetHashCode(); result = result * 7 + IsLava.GetHashCode(); result = result * 7 + Frame.GetHashCode(); return(result); }
public override int GetHashCode() { var hashCode = -81208087; hashCode = hashCode * -1521134295 + Color.GetHashCode(); hashCode = hashCode * -1521134295 + PushReaction.GetHashCode(); hashCode = hashCode * -1521134295 + BlocksMovement.GetHashCode(); hashCode = hashCode * -1521134295 + Flammable.GetHashCode(); hashCode = hashCode * -1521134295 + RequiresNoTool.GetHashCode(); hashCode = hashCode * -1521134295 + Liquid.GetHashCode(); hashCode = hashCode * -1521134295 + Opaque.GetHashCode(); hashCode = hashCode * -1521134295 + Replaceable.GetHashCode(); hashCode = hashCode * -1521134295 + Solid.GetHashCode(); return(hashCode); }