Files
mir_server/server/LogicServer/attr/RandAttrReader.h

34 lines
1.1 KiB
C
Raw Permalink Normal View History

2025-01-09 17:45:40 +08:00
#pragma once
/************************************************************************/
/*
/* 随机属性配置项读取器
/*
/************************************************************************/
class CRandAttrReader :
public CCustomLogicLuaConfig
{
public:
typedef CCustomLogicLuaConfig Inherited;
typedef CObjectAllocator<char> CDataAllocator;
public:
/*
* Comments:
* Param lua_State * L: lua虚拟机对象
* Param PRANDOMATTRTERM pRandAttrTerms:
* Param INT_PTR numTermToRead:
* @Return bool: numTermToRead
*/
INT_PTR readConfig(lua_State* L, PRANDOMATTRTERM pRandAttrTerms, CDataAllocator &dataAllocator, INT_PTR numTermToRead);
protected:
//读取物品属性配置值
GAMEATTRVALUE readAttrValue(const tagGameAttributeType attrType, LPCSTR sName);
protected:
//覆盖错误输出函数
void showError(LPCTSTR sError);
public:
~CRandAttrReader();
};