public MergeMapWindow(string filename) { objects = new Containers.SuppressableObservableCollection <MergeMap.Object>(); List <MergeMap.Object> temp_merge = new List <MergeMap.Object>(); EditorSubsystemManaged.getInstance().QueueActionAndBlock(new Action(() => { StateSerializer ss = new StateSerializer(); StateObjDescVector objs = ss.LoadStateInformation(filename, false); foreach (StateObjDesc desc in objs) { temp_merge.Add(new MergeMap.Object { Name = desc.name, HasParent = desc.hasParent, ShouldMerge = true }); } })); objects.AddRange(temp_merge); InitializeComponent(); }
public StateObjDescVector LoadStateInformation(string filename) { StateObjDescVector ret = new StateObjDescVector(SharpMochaPINVOKE.StateSerializer_LoadStateInformation__SWIG_2(swigCPtr, filename), true); if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public StateObjDescVector LoadStateInformation(string filename, bool remove_state, SWIGTYPE_p_p_BaseState ret_newstate) { StateObjDescVector ret = new StateObjDescVector(SharpMochaPINVOKE.StateSerializer_LoadStateInformation__SWIG_0(swigCPtr, filename, remove_state, SWIGTYPE_p_p_BaseState.getCPtr(ret_newstate)), true); if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve(); return ret; }