Crossfire Server, Trunk
Facesets.h
Go to the documentation of this file.
1 /*
2  * Crossfire -- cooperative multi-player graphical RPG and adventure game
3  *
4  * Copyright (c) 2020-2021 the Crossfire Development Team
5  *
6  * Crossfire is free software and comes with ABSOLUTELY NO WARRANTY. You are
7  * welcome to redistribute it under certain conditions. For details, please
8  * see COPYING and LICENSE.
9  *
10  * The authors can be reached via e-mail at <crossfire@metalforge.org>.
11  */
12 
13 #ifndef FACESETS_H
14 #define FACESETS_H
15 
16 #include "AssetsCollection.h"
17 extern "C" {
18 #include "global.h"
19 #include "image.h"
20 }
21 
25 class Facesets : public AssetsCollection<face_sets> {
26 public:
32  face_sets *findById(int id);
33 
34 protected:
35  virtual face_sets *create(const std::string& prefix);
36  virtual void destroy(face_sets *item);
37  virtual void replace(face_sets *existing, face_sets *update);
38  virtual void added(face_sets *face);
39 };
40 
41 #endif /* FACESETS_H */
42 
global.h
castle_read.prefix
string prefix
Definition: castle_read.py:31
Facesets::create
virtual face_sets * create(const std::string &prefix)
Definition: Facesets.cpp:26
Facesets
Definition: Facesets.h:25
AssetsCollection
Definition: AssetsCollection.h:39
AssetsCollection.h
Facesets::replace
virtual void replace(face_sets *existing, face_sets *update)
Definition: Facesets.cpp:42
Facesets::findById
face_sets * findById(int id)
Definition: Facesets.cpp:19
image.h
Facesets::destroy
virtual void destroy(face_sets *item)
Definition: Facesets.cpp:32
item
Definition: item.py:1
face_sets
Definition: image.h:17
Facesets::added
virtual void added(face_sets *face)
Definition: Facesets.cpp:61