Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.2 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Interface of CCustomAwardList
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. //
  8. //------------------------------------------------------------------------------------------------------
  9. // $Log: $
  10. //
  11. // $NoKeywords: $
  12. //=============================================================================//
  13. #ifndef CUSTOMAWARDLIST_H
  14. #define CUSTOMAWARDLIST_H
  15. #ifdef WIN32
  16. #pragma once
  17. #endif
  18. #include "CustomAward.h"
  19. #include <list>
  20. using namespace std;
  21. typedef list<CCustomAward*>::iterator CCustomAwardIterator;
  22. //------------------------------------------------------------------------------------------------------
  23. // Purpose: this is just a thin wrapper around a list of CCustomAward*s
  24. // also provided is a static factory method to read a list of custom awards
  25. // out of a configuration file
  26. //------------------------------------------------------------------------------------------------------
  27. class CCustomAwardList
  28. {
  29. public:
  30. list<CCustomAward*> theList;
  31. //factory method
  32. static CCustomAwardList* readCustomAwards(string mapname);
  33. CCustomAwardIterator begin(){return theList.begin();}
  34. CCustomAwardIterator end(){return theList.end();}
  35. };
  36. #endif // CUSTOMAWARDLIST_H