Crossfire Resources Editor
FacesetsWrapper.h
Go to the documentation of this file.
1
/*
2
* Crossfire -- cooperative multi-player graphical RPG and adventure game
3
*
4
* Copyright (c) 2022 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 FACE_SETS_WRAPPER_H
14
#define FACE_SETS_WRAPPER_H
15
16
#include <QObject>
17
18
#include "global.h"
19
#include "image.h"
20
#include "
assets/AssetWrapper.h
"
21
#include "
assets/AssetWrapperPanel.h
"
22
23
class
ResourcesManager
;
24
25
class
FacesetsWrapper
:
public
AssetTWrapper
<face_sets> {
26
Q_OBJECT
27
28
Q_PROPERTY(QString
prefix
READ
prefix
)
29
Q_PROPERTY(QString
fullname
READ
fullname
)
30
Q_PROPERTY(QString
fallback
READ
fallback
)
31
Q_PROPERTY(QString
size
READ
size
)
32
Q_PROPERTY(QString
extension
READ
extension
)
33
34
public:
35
FacesetsWrapper
(
AssetWrapper
*parent, face_sets* fs,
ResourcesManager
*) :
AssetTWrapper
(parent, "Faceset", fs) { }
36
37
virtual
QString
displayName
()
const override
{
return
myWrappedItem
->prefix; }
38
39
QString
prefix
()
const
{
return
myWrappedItem
->prefix; }
40
QString
fullname
()
const
{
return
myWrappedItem
->fullname; }
41
QString
fallback
()
const
{
return
myWrappedItem
->fallback ?
myWrappedItem
->fallback->prefix :
""
; }
42
QString
size
()
const
{
return
myWrappedItem
->size; }
43
QString
extension
()
const
{
return
myWrappedItem
->extension; }
44
};
45
46
#endif // FACE_SETS_WRAPPER_H
AssetTWrapper< face_sets >::myWrappedItem
face_sets * myWrappedItem
Definition:
AssetWrapper.h:110
AssetWrapper.h
FacesetsWrapper::fullname
QString fullname() const
Definition:
FacesetsWrapper.h:40
FacesetsWrapper::fullname
QString fullname
Definition:
FacesetsWrapper.h:29
FacesetsWrapper::fallback
QString fallback
Definition:
FacesetsWrapper.h:30
ResourcesManager
Class managing all assets, tracking in which file they are, which are modified, and such.
Definition:
ResourcesManager.h:80
FacesetsWrapper::displayName
virtual QString displayName() const override
Definition:
FacesetsWrapper.h:37
FacesetsWrapper::prefix
QString prefix() const
Definition:
FacesetsWrapper.h:39
FacesetsWrapper::size
QString size() const
Definition:
FacesetsWrapper.h:42
FacesetsWrapper::fallback
QString fallback() const
Definition:
FacesetsWrapper.h:41
FacesetsWrapper::extension
QString extension() const
Definition:
FacesetsWrapper.h:43
FacesetsWrapper::size
QString size
Definition:
FacesetsWrapper.h:31
AssetWrapper
Base class for all assets that can be displayed or edited by CRE.
Definition:
AssetWrapper.h:25
AssetWrapperPanel.h
FacesetsWrapper::extension
QString extension
Definition:
FacesetsWrapper.h:32
FacesetsWrapper
Definition:
FacesetsWrapper.h:25
FacesetsWrapper::prefix
QString prefix
Definition:
FacesetsWrapper.h:28
AssetTWrapper
Base class for assets mapping to a native Crossfire structure.
Definition:
AssetWrapper.h:100
crossfire-crossfire-server
utils
cre
faces
FacesetsWrapper.h
Generated on Mon Sep 1 2025 00:41:07 for Crossfire Resources Editor by
1.8.17