コード例 #1
0
        public static void CreateSimpleSkinFromLegacy(CreateSimpleSkinFromLegacy opts)
        {
            StaticObject staticObject = StaticObject.ReadSCO(opts.StaticObjectPath);
            WGTFile      weightFile   = new WGTFile(opts.WeightFilePath);
            SimpleSkin   simpleSkin   = new SimpleSkin(staticObject, weightFile);

            simpleSkin.Write(opts.SimpleSkinPath);
        }
コード例 #2
0
        private static int CreateSimpleSkinFromLegacy(CreateSimpleSkinFromLegacyOptions opts)
        {
            try
            {
                CreateSimpleSkinFromLegacy createSimpleSkinFromLegacy = new CreateSimpleSkinFromLegacy()
                {
                    SimpleSkinPath   = opts.SimpleSkinPath,
                    StaticObjectPath = opts.StaticObjectPath,
                    WeightFilePath   = opts.WeightFilePath
                };

                LeagueConverter.CreateSimpleSkinFromLegacy(createSimpleSkinFromLegacy);
            }
            catch (Exception exception)
            {
                Console.WriteLine("Failed to convert Simple Skin to glTF");
                Console.WriteLine(exception);
            }

            return(1);
        }