private void TryLoadPartInfo()
        {
            var actor = new RedStarLibrary.ActorBase();

            actor.LoadActor($"{RedStarLibrary.GlobalSettings.GamePath}\\ObjectData\\Mario.szs");
            LoadActorFile(actor);
            LoadAnimations(actor);
        }
Example #2
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);
            }
        }