OpenClonk
C4Achievement.h
Go to the documentation of this file.
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
C4AchievementGraphics
Definition:
C4Achievement.h:21
C4AchievementGraphics::FindByName
C4FacetSurface * FindByName(const char *name) const
Definition:
C4Achievement.cpp:68
C4AchievementGraphics::C4AchievementGraphics
C4AchievementGraphics()=default
C4AchievementGraphics::Clear
void Clear()
Definition:
C4Achievement.cpp:60
C4AchievementGraphics::Init
bool Init(C4Group &File)
Definition:
C4Achievement.cpp:23
C4FacetSurface
Definition:
C4FacetEx.h:32
C4Group
Definition:
C4Group.h:136
C4GroupSet
Definition:
C4GroupSet.h:77
openclonk
src
player
C4Achievement.h
Generated on Fri May 16 2025 04:33:07 for OpenClonk by
1.9.1