|
ngl_server 1.0
基于 Actor 模型的 C++ 服务器框架
|
掉落系统模板类 More...
#include <drop.h>
Public Member Functions | |
| void | init (TACTOR *aactor, const std::set< i64_actorid > &adataid) |
| void | exit () |
| bool | isactivity (const tab_random *tab) |
| bool | weight (int aid, std::map< int, int > &amap) |
| void | print_weight (const std::map< int, int > &amap) |
| bool | droplist (int aid, int acount, std::map< int, int > &amap) |
| void | map2goolemap (std::map< int, int > &amap1, google::protobuf::Map< int32_t, int32_t > &amap2) |
| bool | droplist (int aid, int acount, google::protobuf::Map< int32_t, int32_t > &amap) |
| bool | droplist (int aid, int acount, std::map< int, int > &amap1, google::protobuf::Map< int32_t, int32_t > &amap2) |
| bool | use (int aid, int acount, i64_actorid aroleid, const std::string &asrc="", std::map< int, int > *amap=nullptr, int32_t amailid=-1) |
Friends | |
| class | actor_drop |
掉落系统模板类
管理掉落表计算和随机物品生成,支持活动时间验证