Пример #1
0
        private void RunOdysseyActor(IArchiveFile format)
        {
            var actorData = new RedStarLibrary.ActorBase();

            actorData.LoadActor((IArchiveFile)format);
            actorData.InitModelFile();
            if (actorData.TextureArchive != null)
            {
                actorData.TextureArchive.Renderer.ID = DataCache.ModelCache.Values.Count.ToString();
                DataCache.ModelCache.Add(actorData.TextureArchive.Renderer.ID.ToString(), actorData.TextureArchive.Renderer);
            }
        }
Пример #2
0
        private void LoadActorFile(RedStarLibrary.ActorBase actor)
        {
            AddDrawable(actor.ModelFile as IFileFormat);

            Outliner.ActiveFileFormat = actor.ModelFile as IFileFormat;

            actor.InitModelFile();
            actor.InitActorPartList();

            if (actor.TextureArchive != null)
            {
                AddDrawable(actor.TextureArchive as IFileFormat);
            }

            foreach (var part in actor.PartActors.Values)
            {
                LoadActorFile(part);
            }
        }