public MutableChild(Func <T> getter, string fullPath, IRemoteChangesStorage storage) { _getter = getter; FullPath = fullPath; _storage = storage; _properties = new Dictionary <string, INotifyable>(); _childObjects = new Dictionary <string, IMutableChildBase>(); }
public MutableDictionary(Func <Dictionary <string, TValue> > getter, string fullPath, IRemoteChangesStorage storage) : base(getter, fullPath, storage) { _itemChangedCommand = new ReactiveCommand <string>(); }
public MutableDictionary(Func <Dictionary <string, TValue> > getter, string fullPath, IRemoteChangesStorage storage) : base(getter, fullPath, storage) { }
public MutableUserDataChild(Func <SomeUserDataChild> getter, string fullPath, IRemoteChangesStorage storage) : base(getter, fullPath, storage) { FieldA = CreateReactiveProperty <string>( () => Object.FieldA, (v) => UpdateChildData(nameof(Object.FieldA), v), nameof(Object.FieldA)); FieldB = CreateReactiveProperty <int>( () => Object.FieldB, (v) => UpdateChildData(nameof(Object.FieldB), v), nameof(Object.FieldB)); DeepChild = new MutableUserDataDeepChild( () => Object.DeepChild, FullPath + nameof(Object.DeepChild) + "/", this); }
public MutableList(Func <List <T> > getter, string fullPath, IRemoteChangesStorage storage) : base(getter, fullPath, storage) { _replaceObservable = new ReactiveCommand <CollectionReplaceEvent <T> >(); _addObservable = new ReactiveCommand <CollectionAddEvent <T> >(); }
public MutableUserDataDeepChild(Func <DeeperUserDataChild> getter, string fullPath, IRemoteChangesStorage storage) : base(getter, fullPath, storage) { FieldX = CreateReactiveProperty <string>( () => Object.FieldX, (val) => UpdateChildData(nameof(Object.FieldX), val), nameof(Object.FieldX)); FieldY = CreateReactiveProperty <string>( () => Object.FieldY, (val) => UpdateChildData(nameof(Object.FieldY), val), nameof(Object.FieldY)); }