ngl_server 1.0
基于 Actor 模型的 C++ 服务器框架
ngl::familyer Class Reference

玩家-家族映射数据模块 More...

#include <family.h>

Inheritance diagram for ngl::familyer:

Public Member Functions

void related_actorid () final
 设置关联的 Actor ID
void initdata () final
 数据初始化回调,打印数据库数据
bool check_createfamily (i64_actorid aroleid)
 检查玩家是否可以创建公会

Detailed Description

玩家-家族映射数据模块

维护玩家与家族之间的映射关系,用于检查玩家是否可以创建公会。 继承自 tdb_familyer::db_modular,实现数据库持久化。

Member Function Documentation

◆ check_createfamily()

bool ngl::familyer::check_createfamily ( i64_actorid aroleid)
inline

检查玩家是否可以创建公会

Parameters
aroleid玩家角色ID
Returns
true 表示可以创建,false 表示冷却期内或数据不存在

The documentation for this class was generated from the following file: