src/engine_gui.h
changeset 10764 e46596b87826
parent 10737 0f704b9afd93
equal deleted inserted replaced
10763:4849b875130e 10764:e46596b87826
     3 /** @file engine_gui.h Engine GUI functions, used by build_vehicle_gui and autoreplace_gui */
     3 /** @file engine_gui.h Engine GUI functions, used by build_vehicle_gui and autoreplace_gui */
     4 
     4 
     5 #ifndef ENGINE_GUI_H
     5 #ifndef ENGINE_GUI_H
     6 #define ENGINE_GUI_H
     6 #define ENGINE_GUI_H
     7 
     7 
     8 #include <vector>
     8 #include "sortlist_type.h"
     9 
     9 
    10 typedef std::vector<EngineID> EngineList;
    10 typedef GUIList<EngineID> GUIEngineList;
    11 
    11 
    12 typedef int CDECL EngList_SortTypeFunction(const void*, const void*); ///< argument type for EngList_Sort()
    12 typedef int CDECL EngList_SortTypeFunction(const void*, const void*); ///< argument type for EngList_Sort()
    13 void EngList_Sort(EngineList *el, EngList_SortTypeFunction compare);  ///< qsort of the engine list
    13 void EngList_Sort(GUIEngineList *el, EngList_SortTypeFunction compare);  ///< qsort of the engine list
    14 void EngList_SortPartial(EngineList *el, EngList_SortTypeFunction compare, uint begin, uint num_items); ///< qsort of specified portion of the engine list
    14 void EngList_SortPartial(GUIEngineList *el, EngList_SortTypeFunction compare, uint begin, uint num_items); ///< qsort of specified portion of the engine list
    15 
    15 
    16 #endif /* ENGINE_GUI_H */
    16 #endif /* ENGINE_GUI_H */