Crossfire Server  1.75.0
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 #include "global.h"
18 #include "image.h"
19 
23 class Facesets : public AssetsCollection<face_sets> {
24 public:
30  face_sets *findById(int id);
31 
32 protected:
33  virtual void replace(face_sets *existing, face_sets *update) override;
34  virtual void added(face_sets *face) override;
35 };
36 
37 #endif /* FACESETS_H */
38 
virtual void added(face_sets *face) override
An asset was either referenced (but undefined) or defined.
Definition: Facesets.cpp:61
Collection of assets identified by a unique name.
Global type definitions and header inclusions.
Image-related structures.
face_sets * findById(int id)
Attempt to find a faceset from its identifier.
Definition: Facesets.cpp:35
virtual void replace(face_sets *existing, face_sets *update) override
Replace an asset by an updated version.
Definition: Facesets.cpp:42
Available facesets for clients.
Definition: Facesets.h:23
Information about one face set.
Definition: image.h:17