Crossfire Server, Trunk  1.75.0
Faces.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 FACES_H
14 #define FACES_H
15 
16 #include "AssetsCollection.h"
17 #include "global.h"
18 
19 class Faces : public AssetsCollection<Face> {
20 public:
21  Faces();
22 
23  const Face *findById(uint16_t id);
24 
25  int checksum() const { return m_checksum; }
26 
27 protected:
29 
30  virtual void replace(Face *existing, Face *update) override;
31  virtual void added(Face *face) override;
32 };
33 
34 #endif /* FACES_H */
Face
New face structure - this enforces the notion that data is face by face only - you can not change the...
Definition: face.h:14
global.h
Faces::added
virtual void added(Face *face) override
An asset was either referenced (but undefined) or defined.
Definition: Faces.cpp:51
Faces::checksum
int checksum() const
Definition: Faces.h:25
Faces::findById
const Face * findById(uint16_t id)
Definition: Faces.cpp:44
Faces::Faces
Faces()
Definition: Faces.cpp:29
AssetsCollection
Collection of assets identified by a unique name.
Definition: AssetsCollection.h:55
Faces::replace
virtual void replace(Face *existing, Face *update) override
Replace an asset by an updated version.
Definition: Faces.cpp:35
AssetsCollection.h
Faces
Definition: Faces.h:19
Faces::m_checksum
int m_checksum
Definition: Faces.h:28
face
in that case they will be relative to whatever the PWD of the crossfire server process is You probably shouldn though Notes on Specific and settings file datadir Usually usr share crossfire Contains data that the server does not need to modify while such as the etc A default install will pack the and treasurelist definitions into a single or trs file and the graphics into a face(metadata) and .tar(bitmaps) file