public static HistoricalCourseEditorState UpdateProp(this HistoricalCourseEditorState state, EditorProp prop) { if (state.Props.ContainsKey(prop.Id)) { return(state.Update(state.SelectedProp, state.Props.SetItem(prop.Id, prop), state.PropOrder)); } else { return(state); } }
public bool Equals(EditorProp other) { return(Id.Equals(other.Id) && PropType == other.PropType && Transform.Equals(other.Transform)); }