Crossfire Server, Trunk
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:104
global.h
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
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
face_sets::prefix
char * prefix
Definition:
image.h:19
face_sets::extension
char * extension
Definition:
image.h:23
FacesetsWrapper::extension
QString extension() const
Definition:
FacesetsWrapper.h:43
FacesetsWrapper::size
QString size
Definition:
FacesetsWrapper.h:31
AssetWrapper
Definition:
AssetWrapper.h:25
face_sets::size
char * size
Definition:
image.h:22
image.h
face_sets::fallback
struct face_sets * fallback
Definition:
image.h:21
AssetWrapperPanel.h
FacesetsWrapper::extension
QString extension
Definition:
FacesetsWrapper.h:32
face_sets::fullname
char * fullname
Definition:
image.h:20
FacesetsWrapper
Definition:
FacesetsWrapper.h:25
face_sets
Definition:
image.h:17
FacesetsWrapper::prefix
QString prefix
Definition:
FacesetsWrapper.h:28
AssetTWrapper
Definition:
AssetWrapper.h:94
crossfire-crossfire-server
utils
cre
faces
FacesetsWrapper.h
Generated by
1.8.17