Пример #1
0
        static void Main(string[] args)
        {
            Utils.LogMessages.Subscribe(msg => Console.WriteLine(msg.ToString()));
            XEditLib.Init();
            XEditLib.SetGameMode(XEditGame.SSE);
            XEditLib.LoadPlugins("Skyrim.esm", "Update.esm", "Dawnguard.esm", "Hearthfires.esm", "Dragonborn.esm");
            var ench = new Enchantment(new Cursor((RelativePath)"Skyrim.esm", 0x10fb7d));

            using var myfile = XEditLib.AddFile((RelativePath) "myfile2.esp");
            myfile.AddMaster("Skyrim.esm");


            var copy = ench.CopyTo(myfile, false);

            copy.FullName.Value = "Im the enchanter now";
            myfile.Save(@"c:\tmp\myfile2.esp");
        }
Пример #2
0
 public XEditLibTests()
 {
     XEditLib.Init();
     XEditLib.SetGameMode(XEditGame.SSE);
     XEditLib.LoadPlugins(new [] { "Skyrim.esm", "Update.esm", "Dawnguard.esm" }.Select(e => (RelativePath)e));
 }