OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
labels.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_ESMTOOL_LABELS_H
2 #define OPENMW_ESMTOOL_LABELS_H
3 
4 #include <string>
5 
6 std::string bodyPartLabel(int idx);
7 std::string meshPartLabel(int idx);
8 std::string meshTypeLabel(int idx);
9 std::string clothingTypeLabel(int idx);
10 std::string armorTypeLabel(int idx);
11 std::string dialogTypeLabel(int idx);
12 std::string questStatusLabel(int idx);
13 std::string creatureTypeLabel(int idx);
14 std::string soundTypeLabel(int idx);
15 std::string weaponTypeLabel(int idx);
16 
17 // This function's a bit different because the types are record types,
18 // not consecutive values.
19 std::string aiTypeLabel(int type);
20 
21 // This one's also a bit different, because it enumerates dialog
22 // select rule functions, not types. Structurally, it still converts
23 // indexes to strings for display.
24 std::string ruleFunction(int idx);
25 
26 // The labels below here can all be loaded from GMSTs, but are not
27 // currently because among other things, that requires loading the
28 // GMSTs before dumping any of the records.
29 
30 // If the data format supported ordered lists of GMSTs (post 1.0), the
31 // lists could define the valid values, their localization strings,
32 // and the indexes for referencing the types in other records in the
33 // database. Then a single label function could work for all types.
34 
35 std::string magicEffectLabel(int idx);
36 std::string attributeLabel(int idx);
37 std::string spellTypeLabel(int idx);
38 std::string specializationLabel(int idx);
39 std::string skillLabel(int idx);
40 std::string apparatusTypeLabel(int idx);
41 std::string rangeTypeLabel(int idx);
42 std::string schoolLabel(int idx);
43 std::string enchantTypeLabel(int idx);
44 
45 // The are the flag functions that convert a bitmask into a list of
46 // human readble strings representing the set bits.
47 
48 std::string bodyPartFlags(int flags);
49 std::string cellFlags(int flags);
50 std::string containerFlags(int flags);
51 std::string creatureFlags(int flags);
52 std::string landFlags(int flags);
53 std::string creatureListFlags(int flags);
54 std::string itemListFlags(int flags);
55 std::string lightFlags(int flags);
56 std::string magicEffectFlags(int flags);
57 std::string npcFlags(int flags);
58 std::string raceFlags(int flags);
59 std::string spellFlags(int flags);
60 std::string weaponFlags(int flags);
61 
62 // Missing flags functions:
63 // aiServicesFlags, possibly more
64 
65 #endif
std::string schoolLabel(int idx)
Definition: labels.cpp:530
std::string containerFlags(int flags)
Definition: labels.cpp:688
std::string weaponFlags(int flags)
Definition: labels.cpp:893
std::string creatureListFlags(int flags)
Definition: labels.cpp:763
std::string spellTypeLabel(int idx)
Definition: labels.cpp:427
std::string dialogTypeLabel(int idx)
Definition: labels.cpp:144
std::string landFlags(int flags)
Definition: labels.cpp:734
std::string questStatusLabel(int idx)
Definition: labels.cpp:163
std::string creatureFlags(int flags)
Definition: labels.cpp:704
std::string raceFlags(int flags)
Definition: labels.cpp:862
std::string attributeLabel(int idx)
Definition: labels.cpp:407
std::string ruleFunction(int idx)
Definition: labels.cpp:564
std::string apparatusTypeLabel(int idx)
Definition: labels.cpp:499
std::string aiTypeLabel(int type)
Definition: labels.cpp:242
std::string itemListFlags(int flags)
Definition: labels.cpp:749
std::string spellFlags(int flags)
Definition: labels.cpp:877
std::string clothingTypeLabel(int idx)
Definition: labels.cpp:99
std::string specializationLabel(int idx)
Definition: labels.cpp:445
std::string creatureTypeLabel(int idx)
Definition: labels.cpp:180
std::string meshTypeLabel(int idx)
Definition: labels.cpp:84
std::string skillLabel(int idx)
Definition: labels.cpp:460
std::string npcFlags(int flags)
Definition: labels.cpp:828
std::string bodyPartLabel(int idx)
Definition: labels.cpp:18
std::string weaponTypeLabel(int idx)
Definition: labels.cpp:216
std::string rangeTypeLabel(int idx)
Definition: labels.cpp:515
std::string lightFlags(int flags)
Definition: labels.cpp:774
std::string magicEffectFlags(int flags)
Definition: labels.cpp:802
std::string meshPartLabel(int idx)
Definition: labels.cpp:57
std::string cellFlags(int flags)
Definition: labels.cpp:667
std::string bodyPartFlags(int flags)
Definition: labels.cpp:653
std::string magicEffectLabel(int idx)
Definition: labels.cpp:252
std::string soundTypeLabel(int idx)
Definition: labels.cpp:196
std::string enchantTypeLabel(int idx)
Definition: labels.cpp:548
std::string armorTypeLabel(int idx)
Definition: labels.cpp:121