Пример #1
0
        public void YochiAppend()
        {
            uint  address = Util.YochiStartAddress + (uint)Yochi.List.Count * Util.YochiDateSize;
            Yochi item    = new Yochi(address);

            item.Create();
            Yochi.Append(item);
        }
Пример #2
0
 public void YochiInit()
 {
     Yochi.Clear();
     for (uint i = 0; i < Util.YochiCount; i++)
     {
         uint address = Util.YochiStartAddress + i * Util.YochiDateSize;
         uint value   = SaveData.Instance().ReadNumber(address + Util.YochiDateSize - 4, 4);
         if (value == 0xFFFFFFFF)
         {
             break;
         }
         Yochi.Append(new Yochi(address));
     }
 }
Пример #3
0
        private void ButtonYochiWeaponChange_Click(object sender, RoutedEventArgs e)
        {
            Yochi yochi = ListBoxYochi.SelectedItem as Yochi;

            if (yochi == null)
            {
                return;
            }
            ItemSelectWindow window = new ItemSelectWindow();

            window.Type = ItemSelectWindow.eType.Equipment;
            window.ID   = yochi.Weapon;
            window.ShowDialog();
            yochi.Weapon = window.ID;
        }