Пример #1
0
        //Packed with random tests. Don't invoke unless you want weird stuff to execute.
        public static void Test()
        {
            DistributedValue.Create("Well_this_is_op", 1337);
            Window.CreateFromXml("Test", @"D:\2020Backup\Desktop\Test.xml").Show(true);
            //DistributedValue.LoadConfig(@"C:\Users\tagyo\AppData\Local\Funcom\Anarchy Online\cd94ae4f\Anarchy Online\Prefs\melatonin220\Char1108641443\Prefs.xml", 3, true);
            //DistributedValue.SaveConfig(@"C:\Users\tagyo\Desktop\test3.xml", 3);

            /*
             * IntPtr pPrefs = IndependentPrefs__GetInstance();
             *
             * if (pPrefs == IntPtr.Zero)
             *  return;
             *
             * Chat.WriteLine(IndependentPrefs__Load(pPrefs, "Well_this_worked", 0));
             */
        }
Пример #2
0
 public void AddVariable(string name, bool value)
 {
     DistributedValue.Create($"{_groupName}__{name}", value);
     AddVariable(name);
 }