1
+ #include " actor_type.h"
2
+
3
+ #include " actor_client.h"
4
+ #include " actor_create.h"
5
+ #include " actor_db.h"
6
+ #include " actor_server.h"
7
+ #include " actor_cross.h"
8
+ #include " actor_manage_role.h"
9
+ #include " actor_role.h"
10
+ #include " actor_gateway.h"
11
+ #include " actor_gateway_client2game.h"
12
+ #include " actor_gateway_game2client.h"
13
+ #include " actor_log.h"
14
+ #include " actor_login.h"
15
+ #include " actor_reloadcsv.h"
16
+ #include " actor_robot.h"
17
+ #include " actor_manage_activity.h"
18
+ #include " actor_brief.h"
19
+ #include " actor_chat.h"
20
+ #include " actor_gm.h"
21
+ #include " actor_mail.h"
22
+ #include " actor_notice.h"
23
+ #include " actor_ranklist.h"
24
+ #include " actor_matching.h"
25
+ #include " actor_manage_plays.h"
26
+ #include " actor_plays_go_undergroundpalace.h"
27
+
28
+ namespace ngl
29
+ {
30
+ std::multimap<size_t , ENUM_ACTOR> actor_type::m_keyval;
31
+
32
+ template <EPROTOCOL_TYPE PROTYPE, pbdb::ENUM_DB TDBTAB_TYPE, typename TDBTAB>
33
+ void initdb ()
34
+ {
35
+ actor_type::inits<
36
+ ngl::actor_db<EPROTOCOL_TYPE_PROTOCOLBUFF, TDBTAB_TYPE, TDBTAB>
37
+ >((ENUM_ACTOR)(PROTYPE * 1000 + ACTOR_DB + TDBTAB_TYPE));
38
+ }
39
+
40
+ void actor_type::init ()
41
+ {
42
+ inits<actor_client>(ACTOR_ADDRESS_CLIENT);
43
+ inits<actor_create>(ACTOR_CREATE);
44
+ inits<actor_server>(ACTOR_ADDRESS_SERVER);
45
+ inits<actor_cross>(ACTOR_CROSS);
46
+ inits<actor_manage_role>(ACTOR_MANAGE_ROLE);
47
+ inits<actor_role>(ACTOR_ROLE);
48
+ inits<actor_gateway>(ACTOR_GATEWAY);
49
+ inits<actor_gateway_client2game>(ACTOR_GATEWAY_CLIENT2GAME);
50
+ inits<actor_gateway_game2client>(ACTOR_GATEWAY_GAME2CLIENT);
51
+ inits<actor_log>(ACTOR_LOG);
52
+ inits<actor_login>(ACTOR_LOGIN);
53
+ inits<actor_reloadcsv>(ACTOR_RELOADCSV);
54
+ inits<actor_reloadcsv_distribute>(ACTOR_RELOADCSV_DISTRIBUTE);
55
+ inits<actor_robot>(ACTOR_ROBOT);
56
+ inits<actor_manage_robot>(ACTOR_MANAGE_ROBOT);
57
+ inits<actor_manage_activity>(ACTOR_ACTIVITY_MANAGE);
58
+ inits<actor_brief>(ACTOR_BRIEF);
59
+ inits<actor_chat>(ACTOR_CHAT);
60
+ inits<actor_gm>(ACTOR_GM);
61
+ inits<actor_mail>(ACTOR_MAIL);
62
+ inits<actor_notice>(ACTOR_NOTICE);
63
+ inits<actor_ranklist>(ACTOR_RANKLIST);
64
+ inits<actor_matching>(ACTOR_MATCHING);
65
+ inits<actor_manage_plays>(ACTOR_MANAGE_PLAYS);
66
+ inits<actor_plays_go_undergroundpalace>(ACTOR_PLAYS_GO_UNDERGROUNDPALACE);
67
+
68
+ initdb<EPROTOCOL_TYPE_PROTOCOLBUFF, pbdb::ENUM_DB_ACCOUNT, pbdb::db_account>();
69
+ initdb<EPROTOCOL_TYPE_PROTOCOLBUFF, pbdb::ENUM_DB_ROLE, pbdb::db_role>();
70
+ initdb<EPROTOCOL_TYPE_PROTOCOLBUFF, pbdb::ENUM_DB_BAG, pbdb::db_bag>();
71
+ initdb<EPROTOCOL_TYPE_PROTOCOLBUFF, pbdb::ENUM_DB_KEYVALUE, pbdb::db_keyvalue>();
72
+ initdb<EPROTOCOL_TYPE_PROTOCOLBUFF, pbdb::ENUM_DB_MAIL, pbdb::db_mail>();
73
+ initdb<EPROTOCOL_TYPE_PROTOCOLBUFF, pbdb::ENUM_DB_GUILD, pbdb::db_guild>();
74
+ initdb<EPROTOCOL_TYPE_PROTOCOLBUFF, pbdb::ENUM_DB_NOTICE, pbdb::db_notice>();
75
+ initdb<EPROTOCOL_TYPE_PROTOCOLBUFF, pbdb::ENUM_DB_ACTIVITY, pbdb::db_activity>();
76
+ initdb<EPROTOCOL_TYPE_PROTOCOLBUFF, pbdb::ENUM_DB_BRIEF, pbdb::db_brief>();
77
+ initdb<EPROTOCOL_TYPE_PROTOCOLBUFF, pbdb::ENUM_DB_RANKLIST, pbdb::db_ranklist>();
78
+ initdb<EPROTOCOL_TYPE_PROTOCOLBUFF, pbdb::ENUM_DB_TASK, pbdb::db_task>();
79
+
80
+ }
81
+ }
0 commit comments