コード例 #1
0
        private void LoadMapData(string map_path)
        {
            try
            {
                map = new BSP(map_path);
            }
            catch (Exception e)
            {
                MessageBox.Show(e.Message, "Invalid BSP File");
                return;
            }

            map.GetEntities();

            for (var i = 0; i < map.entities.Count; i++)
            {
                KeyValueGroup ent = map.entities[i];
                ent.split = check_all.Checked;
            }

            Invoke(new Action(async() =>
            {
                await Task.Delay(500);

                list_ents.Visible    = true;
                list_ents.DataSource = map.entities;
                list_ents.PerformLayout();
                loading.Visible = false;
            }));
        }