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); }
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); }