Exemplo n.º 1
0
            public IRevertable Revert(EditorSceneBase scene)
            {
                RevertablePropertyInfo[] newInfos = new RevertablePropertyInfo[infos.Length];

                for (int i = 0; i < infos.Length; i++)
                {
                    object currentValue = infos[i].property.GetValue(infos[i].obj);

                    newInfos[i] = new RevertablePropertyInfo(infos[i].property, infos[i].obj, currentValue);
                }

                return(new RevertableMulityPropertyChange(newInfos));
            }
Exemplo n.º 2
0
 public RevertablePropertyChange(RevertablePropertyInfo info)
 {
     property  = info.property;
     obj       = info.obj;
     prevValue = info.prevValue;
 }