Crossfire Server, Trunk
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
i
j
k
m
n
o
p
r
s
t
u
v
Enumerations
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Enumerations
Enumerator
Properties
a
b
c
d
e
f
h
i
j
k
l
m
n
p
q
r
s
t
y
Related Functions
:
b
d
o
s
w
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
w
y
z
Typedefs
a
c
d
e
f
i
j
k
l
m
n
o
p
q
s
t
y
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
ArchetypesWrapper.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 ARCHETYPES_WRAPPER_H
14
#define ARCHETYPES_WRAPPER_H
15
16
#include <QObject>
17
18
#include "
assets.h
"
19
#include "
AssetsManager.h
"
20
#include "
global.h
"
21
#include "
assets/AssetsCollectionWrapper.h
"
22
23
class
ResourcesManager
;
24
25
class
ArchetypesWrapper
:
public
AssetsCollectionWrapper
<archetype> {
26
Q_OBJECT
27
28
public
:
29
ArchetypesWrapper
(
AssetWrapper
*parent,
ResourcesManager
*resources) :
AssetsCollectionWrapper
(parent, tr(
"Archetypes"
),
getManager
()->archetypes(), resources, tr(
"Display all archetypes."
)) {
30
myResources
= resources;
31
}
32
33
virtual
PossibleUse
uses
(
const
AssetWrapper
*, std::string &)
const override
{
34
return
ChildrenMayUse
;
35
}
36
37
virtual
void
fillMenu
(QMenu *menu)
override
;
38
39
virtual
bool
canExportAsCsv
()
const override
{
return
true
; }
40
virtual
void
fillCsvHeader
(QString&
contents
)
const
;
41
virtual
void
exportAsCSV
(
const
AssetWrapper
*
item
, QString&
contents
)
const override
;
42
43
protected
:
44
void
addArchetype
();
45
46
ResourcesManager
*
myResources
;
47
};
48
49
#endif // ARCHETYPE_WRAPPER_H
ArchetypesWrapper::fillMenu
virtual void fillMenu(QMenu *menu) override
Definition:
ArchetypesWrapper.cpp:42
global.h
ArchetypesWrapper::fillCsvHeader
virtual void fillCsvHeader(QString &contents) const
Definition:
ArchetypesWrapper.cpp:67
ResourcesManager
Definition:
ResourcesManager.h:80
AssetsManager.h
AssetWrapper::PossibleUse
PossibleUse
Definition:
AssetWrapper.h:32
ArchetypesWrapper::exportAsCSV
virtual void exportAsCSV(const AssetWrapper *item, QString &contents) const override
Definition:
ArchetypesWrapper.cpp:76
getManager
AssetsManager * getManager()
Definition:
assets.cpp:305
AssetWrapper::ChildrenMayUse
@ ChildrenMayUse
Definition:
AssetWrapper.h:32
AssetWrapper
Definition:
AssetWrapper.h:25
ArchetypesWrapper::ArchetypesWrapper
ArchetypesWrapper(AssetWrapper *parent, ResourcesManager *resources)
Definition:
ArchetypesWrapper.h:29
ArchetypesWrapper
Definition:
ArchetypesWrapper.h:25
ArchetypesWrapper::canExportAsCsv
virtual bool canExportAsCsv() const override
Definition:
ArchetypesWrapper.h:39
item
Definition:
item.py:1
AssetsCollectionWrapper.h
assets.h
givecontents.contents
bool contents
DIALOGCHECK MINARGS 1 MAXARGS 1
Definition:
givecontents.py:19
ArchetypesWrapper::uses
virtual PossibleUse uses(const AssetWrapper *, std::string &) const override
Definition:
ArchetypesWrapper.h:33
AssetsCollectionWrapper
Definition:
AssetsCollectionWrapper.h:21
ArchetypesWrapper::addArchetype
void addArchetype()
Definition:
ArchetypesWrapper.cpp:46
ArchetypesWrapper::myResources
ResourcesManager * myResources
Definition:
ArchetypesWrapper.h:46
crossfire-crossfire-server
utils
cre
archetypes
ArchetypesWrapper.h
Generated by
1.8.17