1 /* 2 * OpenClonk, http://www.openclonk.org 3 * 4 * Copyright (c) 2014-2017, The OpenClonk Team and contributors 5 * 6 * Distributed under the terms of the ISC license; see accompanying file 7 * "COPYING" for details. 8 * 9 * "Clonk" is a registered trademark of Matthes Bender, used with permission. 10 * See accompanying file "TRADEMARK" for details. 11 * 12 * To redistribute this file separately, substitute the full license texts 13 * for the above references. 14 */ 15 16 #ifndef INC_C4Achievement 17 #define INC_C4Achievement 18 19 // Maps IDs to achievement graphics to be shown beside scenarios (and maybe other things) 20 class C4AchievementGraphics 21 { 22 std::map<StdCopyStrBuf, C4FacetSurface *> Graphics; 23 int32_t idGrp{0}; // ID of group file from which achievements were loaded 24 25 public: 26 C4AchievementGraphics() = default; 27 28 // Init will always load all achievement files from the first group that contains achievements 29 bool Init(C4Group &File); 30 bool Init(C4GroupSet &Files); 31 void Clear(); 32 33 C4FacetSurface *FindByName(const char *name) const; 34 }; 35 36 #endif // INC_C4Achievement 37