public static AgentProximityMap.ProximityMapSearchStruct BeginSearch(
     Vec2 searchPos,
     float searchRadius)
 {
     AgentProximityMap.ProximityMapSearchStruct proximityMapSearchStruct = new AgentProximityMap.ProximityMapSearchStruct();
     proximityMapSearchStruct.SearchStructInternal = Mission.Current.ProximityMapBeginSearch(searchPos, searchRadius);
     proximityMapSearchStruct.RefreshLastFoundAgent();
     return(proximityMapSearchStruct);
 }
 public static void FindNext(
     ref AgentProximityMap.ProximityMapSearchStruct searchStruct)
 {
     Mission.Current.ProximityMapFindNext(ref searchStruct.SearchStructInternal);
     searchStruct.RefreshLastFoundAgent();
 }