コード例 #1
0
        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();
        }
コード例 #2
0
 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;
 }
コード例 #3
0
 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;
 }