/// <summary> /// Compares this instance to the specified <see cref="IUpdateableComponent"/> instance. /// </summary> /// <param name="other">The <see cref="IUpdateableComponent"/> instance to compare to this instance.</param> /// <returns> /// <list type="bullet"> /// <item>A negative number if this instance shall be updated before the <paramref name="other"/> instance.</item> /// <item>Zero if the this instance and the <paramref name="other"/> instance may be updated in any order.</item> /// <item>A positive number if this instance shall be updated after the <paramref name="other"/> instance.</item> /// </list> /// </returns> public int CompareTo(IUpdateableComponent other) { return(other == null ? -1 : this == other ? 0 : this.UpdateOrder.CompareTo(other.UpdateOrder)); }
public static void AddUpdateableComponent(IUpdateableComponent updateableComponent) { m_UpdateableComponents.Add(updateableComponent); }