Crossfire Server, Trunk
assets.h
Go to the documentation of this file.
1 #ifndef ASSETS_H
2 #define ASSETS_H
3 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 #include "global.h"
15 #include "image.h"
16 #include "quest.h"
17 
24 #define ASSETS_ARCHETYPES 0x0001
25 #define ASSETS_FACES 0x0002
26 #define ASSETS_ANIMATIONS 0x0004
27 #define ASSETS_FACESETS 0x0008
28 #define ASSETS_TREASURES 0x0010
29 #define ASSETS_PNG 0x0020
30 #define ASSETS_MESSAGES 0x0040
31 #define ASSETS_ARTIFACTS 0x0080
32 #define ASSETS_FORMULAE 0x0100
33 #define ASSETS_ATTACK_MESSAGES 0x0200
34 #define ASSETS_QUESTS 0x0400
35 #define ASSETS_ALL 0xFFFF
36 
38 void load_assets(void);
39 
40 void assets_init();
41 void assets_free();
42 void assets_collect(const char* datadir, int what);
43 size_t assets_dump_undefined();
44 void assets_end_load();
45 
46 typedef void(*arch_op)(archetype *);
47 typedef void(*face_op)(const Face *);
48 typedef void(*anim_op)(const Animations *);
49 typedef void(*faceset_op)(const face_sets *);
50 
53 
56 
59 
61 
63 
65 
71 void assets_pack(const char *type, const char *filename);
72 
74 
75 long recipe_find_ingredient_cost(const char *name);
76 
82 
89 
95 void quest_for_each(quest_op op, void *user);
96 
97 size_t quests_count(bool includeSystem);
98 
99 #ifdef __cplusplus
100 }
101 
102 class AssetsManager *getManager();
103 
104 #endif
105 
106 #endif /* ASSETS_H */
Face
Definition: face.h:14
global.h
facesets_for_each
void facesets_for_each(faceset_op op)
Definition: assets.cpp:325
GeneralMessage
Definition: book.h:44
assets_finish_archetypes_for_play
void assets_finish_archetypes_for_play()
Definition: assets.cpp:548
quest_op
void(* quest_op)(const quest_definition *, void *)
Definition: quest.h:55
assets_number_of_archetypes
size_t assets_number_of_archetypes()
Definition: assets.cpp:274
face_op
void(* face_op)(const Face *)
Definition: assets.h:47
npc_dialog.filename
filename
Definition: npc_dialog.py:99
getManager
AssetsManager * getManager()
Definition: assets.cpp:333
archetypes_for_each
void archetypes_for_each(arch_op op)
Definition: assets.cpp:329
assets_number_of_animations
size_t assets_number_of_animations()
Definition: assets.cpp:290
archt
Definition: object.h:470
faces_for_each
void faces_for_each(face_op op)
Definition: assets.cpp:321
assets_number_of_treasures
size_t assets_number_of_treasures()
Definition: assets.cpp:267
faceset_op
void(* faceset_op)(const face_sets *)
Definition: assets.h:49
quest_find_by_code
quest_definition * quest_find_by_code(sstring code)
Definition: assets.cpp:687
assets_end_load
void assets_end_load()
Definition: assets.cpp:239
quests_count
size_t quests_count(bool includeSystem)
Definition: assets.cpp:711
quest_for_each
void quest_for_each(quest_op op, void *user)
Definition: assets.cpp:707
sstring
const typedef char * sstring
Definition: global.h:40
assets_number_of_treasurelists
size_t assets_number_of_treasurelists()
Definition: assets.cpp:270
animations_for_each
void animations_for_each(anim_op op)
Definition: assets.cpp:302
nlohmann::detail::void
j template void())
Definition: json.hpp:4099
image.h
assets_dump_undefined
size_t assets_dump_undefined()
Definition: assets.cpp:232
assets_free
void assets_free()
Definition: assets.cpp:76
assets_collect
void assets_collect(const char *datadir, int what)
Definition: assets.cpp:117
animations_struct
Definition: face.h:25
get_random_message
GeneralMessage * get_random_message()
Definition: assets.cpp:347
quest.h
assets_pack
void assets_pack(const char *type, const char *filename)
Definition: assets.cpp:457
load_assets
void load_assets(void)
Definition: init.c:179
give.op
op
Definition: give.py:33
recipe_find_ingredient_cost
long recipe_find_ingredient_cost(const char *name)
Definition: assets.cpp:580
quest_definition
Definition: quest.h:42
anim_op
void(* anim_op)(const Animations *)
Definition: assets.h:48
AssetsManager
Definition: AssetsManager.h:28
assets_init
void assets_init()
Definition: assets.cpp:69
arch_op
void(* arch_op)(archetype *)
Definition: assets.h:46
face_sets
Definition: image.h:17
quest_get_by_code
quest_definition * quest_get_by_code(sstring code)
Definition: assets.cpp:698
is_valid_types_gen.type
list type
Definition: is_valid_types_gen.py:25
give.name
name
Definition: give.py:27