private void B_Load_Click(object sender, EventArgs e)
        {
            var data = MiscDumpHelper.LoadFlags(Counts.Length * 2, nameof(EventFlagVillager));

            if (data.Length != 0)
            {
                Buffer.BlockCopy(data, 0, Counts, 0, data.Length);
            }
            LB_Counts.SelectedIndex = LB_Counts.SelectedIndex;
        }
Exemple #2
0
        private void B_LoadHouse_Click(object sender, EventArgs e)
        {
            if (!MiscDumpHelper.LoadHouse(Players, Houses, Index))
            {
                return;
            }

            RoomIndex = -1;
            var house = Houses[Index];

            PG_Item.SelectedObject = house;
            ChangeRoom(house);
        }
Exemple #3
0
        private void B_LoadRoom_Click(object sender, EventArgs e)
        {
            var room = Manager.Room;

            MiscDumpHelper.LoadRoom(room, RoomIndex);

            var house = Houses[Index];

            house.SetRoom(RoomIndex, room);
            ReloadManager(house);
            DrawLayer();
            System.Media.SystemSounds.Asterisk.Play();
        }
 private void B_Dump_Click(object sender, EventArgs e)
 {
     byte[] data = new byte[Counts.Length * 2];
     Buffer.BlockCopy(Counts, 0, data, 0, data.Length);
     MiscDumpHelper.DumpFlags(data, nameof(EventFlagVillager));
 }
Exemple #5
0
 private void B_DumpHouse_Click(object sender, EventArgs e)
 {
     MiscDumpHelper.DumpHouse(Players, Houses, Index, ModifierKeys == Keys.Shift);
 }
Exemple #6
0
 private void B_DumpRoom_Click(object sender, EventArgs e)
 {
     SaveRoom();
     MiscDumpHelper.DumpRoom(Manager.Room, RoomIndex);
 }