Example #1
0
 private void EntityResultGoToButton_Click(object sender, EventArgs e)
 {
     if (EntityResultsListView.SelectedIndices.Count > 0)
     {
         var li = EntityResultsListView.SelectedIndices[0];
         if (li < EntityResults.Count)
         {
             var ent = EntityResults[li];
             if (ent.Archetype == null)
             {
                 var gfc = WorldForm.GameFileCache;
                 ent.Archetype = gfc.GetArchetype(ent._CEntityDef.archetypeName);
             }
             WorldForm.GoToEntity(ent);
         }
     }
 }