示例#1
0
        private void ReaderSCO(string fileName)
        {
            SCOLoader loader = new SCOLoader();
            SCOFile   sco    = loader.Read(fileName);

            lbAIMeshVerticsCount.Text  = sco.CurrentAIMesh.Vertices.Count.ToString();
            lbAIMeshEdgeCount.Text     = sco.CurrentAIMesh.Edages.Count.ToString();
            lbAIMeshFaceCount.Text     = sco.CurrentAIMesh.Faces.Count.ToString();
            lbGroundPaintLayerNum.Text = sco.CurrentGroundPaint != null?sco.CurrentGroundPaint.Layers.Count.ToString() : "N/A";

            lbGroundPaintLayerSize.Text = sco.CurrentGroundPaint != null?sco.CurrentGroundPaint.SizeX.ToString() + "," + sco.CurrentGroundPaint.SizeY.ToString() : "N/A";

            txtMissionObjectCount.Text = sco.MissionObjects.Count.ToString();

            missionObject.Items.Clear();
            foreach (var missObj in sco.MissionObjects)
            {
                ListViewItem lvi = new ListViewItem();
                lvi.Text = missObj.ID;
                lvi.SubItems.Add(missObj.MetaType.ToString());
                lvi.SubItems.Add(missObj.SubKindNo.ToString());
                lvi.SubItems.Add(missObj.VariationId.ToString());
                lvi.SubItems.Add(missObj.VariationId2.ToString());
                missionObject.Items.Add(lvi);
            }
        }
示例#2
0
        public void Open(string currentFile)
        {
            SCOLoader loader = new SCOLoader();

            scoFile         = loader.Read(currentFile);
            currentFilePath = currentFile;
            mainWin.SetState(FormState.Open);
        }