Exemplo n.º 1
0
        public List<LrentFile> Read(Form1 C, params EFile[] a_Files)
        {
            if (a_Files.Length == 0) return new List<LrentFile>();

            C.startLoading();
            ManagedWorld.NodeLibrary.AddToOcTree = false;
            List<LrentFile> files = new List<LrentFile>();
            foreach (EFile f in a_Files)
            {
                LrentFile f2 = Read(f, C.Device);
                if (f2 != null)
                    files.Add(f2);
            }
            if (files.Count == 0)
            {
                C.endLoading();
                return files;
            }
            RisenWorld.AddLrents(files);
            lrentNodeLoader.loadGraphicNodes(files, C);
            if (files[0].Objects.Count > 1)
                ILrentObject.MoveCameraTo(files[0][1]);
            return files;
        }