Files
mir_server/server/LogicServer/script/interface/PetExportFun.h

282 lines
8.0 KiB
C
Raw Normal View History

2025-01-09 17:45:40 +08:00
/*
*/
//tolua_begin
namespace Pet
{
/*
//宠物的属性的枚举
enum tagPetProperty
{
enPetLevel =1, //宠物的等级
enPetStrong =2, //宠物的强化
enPetCircle =3, //宠物的转数
enPetConfigId =4, //宠物的配置表里的ID
enPetExp =5, //宠物的经验
enPetLoyalty =6, //宠物的忠诚度
enPetMaxLoyalty =7, //宠物最大的忠诚度
enBaseAttack =8, //基础的攻击资质
enBaseDefence =9, //基础的防御资质
enBaseAgility =10,//基础的敏捷资质
enBasePhysique =11, //基础的体魄资质
enSmithAttack =12, //洗出来的攻击资质
enSmithDefence =13, //洗出来的防御资质
enSmithAgility =14,//洗出来的敏捷资质
enSmithPhysique =15, //洗出来的体魄资质
enPetScore =16, //宠物的评分
enPetAttackType =17, //宠物的攻击类型,1表示内功攻击2表示外功攻击
enPetIconId =18, //宠物的图标ID
enPetWashMergeRate=19, //洗练的宠物的附体比例
enPetQuality =20 , //宠物的品质
enPetTotalMergeRate =21, //当前全部的附体资质
enPetMaxMergeRate =22, //当前最大的附体资质比例
enPetSkillSlotCount = 23, //宠物技能的槽位的数目
};
*/
//宠物增强的类型
/*
enum tagPetEnhanceType
{
etPetEnhanceStrong =1, //强化
etPetEnhanceSmith =2, //洗资质
etPetEnhanceCircle =3, //转生
};
*/
/*
* Comments:
* Param void * pEntity:
* Param int nPetConfigId:ID
* Param int nCircle:
* Param int nStrong:
* Param int nLevel:
* Param int nAttackType:12
* Param int nQuality:-1使
* @Return int:0id
*/
int addPet(void* pEntity,int nPetConfigId, int nLevel =1, int nAiId = 0,int nLiveSecs = 0);
/*
* Comments:
* Param void * pEntity:
* Param int nPetId:id
* @Return int:
*/
int getPetCountByConfigId(void * pEntity, int nPetId);
/*
* Comments:ID获取宠物的名字
* Param void * pEntity:
* Param int nPetId:ID
* @Return char *:
*/
char * getPetName(void * pEntity ,int nPetId);
/*
* Comments:
* Param void * pEntity:
* Param int nPetId:id
* @Return bool:true,false
*/
bool delPetById(void * pEntity, int nPetId);
/*
* Comments:
* Param void * pEntity:
* Param int nPertId:id
* Param int nStrong:
* @Return bool:truefalse
*/
//bool setPetStrong(void *pEntity, int nPertId,int nStrong);
/*
* Comments:
* Param void * pEntity:
* Param int nPetId:ID
* @Return bool:truefalse
*/
//bool petSmith(void *pEntity, int nPetId);
/*
* Comments:
* Param void * pEntity:
* Param int nPetId:id
* Param int nExp:100100
* @Return int:0
*/
//bool addExp(void *pEntity,int nPetId, int nExp);
/*
* Comments:
* Param void * pEntity:
* Param int nPetId:ID
* Param int nValue:
* @Return bool:truefalse
*/
//bool addLoyalty(void *pEntity,int nPetId, int nValue);
/*
* Comments:
* Param void * pEntity:
* Param int nPetId:ID
* Param int nPropId:IDtagPetProperty里定义
* @Return int:
*/
//int getPetProperty(void *pEntity,int nPetId, int nPropId);
/*
* Comments:
* Param void * pEntity:
* Param int nPetConfigId:ID
* @Return bool:truefalse
*/
//bool canAddPet(void *pEntity, int nPetConfigId);
/*
* Comments:
* Param void * pEntity:
* Param int nGridCount:
* @Return bool:truefalse
*/
//bool enlargePetSlot(void *pEntity, int nGridCount);
/*
* Comments:
* Param void * pEntity:
* Param int nPetID:id
* Param int nCircle:
* @Return bool: truefalse
*/
//bool setCircle(void *pEntity, int nPetID, int nCircle);
/*
* Comments:
* Param void * pEntity:
* Param int nPetID: id
* Param int nSkillID:id
* Param int nSlotId:id,1,2,3,4,5,6,7
* @Return bool:true,false
*/
//bool learnSkill(void *pEntity,int nPetID, int nSkillID,int nSlotId);
/*
* Comments:
* Param void * pEntity:
* Param int nPetID:ID
* Param int nSkillID:
* @Return bool:
*/
//bool skillLevelUp(void *pEntity,int nPetID, int nSkillID );
/*
* Comments: id
* Param void * pEntity:
* Param int nPet:id
* Param int nSkillSlot: id1,2,3,4,5,6,7
* @Return int:id,-1
*/
//int getLearnSkillId(void* pEntity,int nPet,int nSkillSlot);
/*
* Comments:
* Param void * pEntity:
* Param int nPetId:id
* Param int nSkillId:id
* @Return bool:truefalse
*/
//bool forgetSkill(void* pEntity,int nPetId,int nSkillId);
/*
* Comments:
* Param void * pEntity:
* Param int nPetId:id
* Param int nSkillId:ID
* @Return int:
*/
//int getSkillLevel(void* pEntity,int nPetId, int nSkillId);
/*
* Comments:id
* Param void * pEntity:
* @Return int:id-1
*/
//int getBattlePetId(void * pEntity);
/*
* Comments:id
* Param void * pEntity:
* @Return int:id-1
*/
//int getMergePetId(void * pEntity);
/*
* Comments:
* Param void * pEntity:
* Param int nPetId:id
* Param int nOpId:
etPetEnhanceStrong =1, //强化
etPetEnhanceSmith =2, //洗资质
etPetEnhanceCircle =3, //转生
* Param bool result:true
* @Return void:
*/
//void sendPetOpResult(void * pEntity,int nPetId,int nOpId, bool result);
/*
* Comments:C宠物的攻击类型
* Param void * pEntity:
* Param int nPetId:ID
* @Return bool:true
*/
//bool changeAttackType(void *pEntity, int nPetId);
/*
* Comments:
* Param void * pEntity:
* Param int nPetId:
* @Return void:
* @Remark:
*/
//void setPetBattle(void* pEntity, int nPetId);
/*
* Comments:
* Param void * pEntity:ID
* Param int nPetId:ID
* Param int configId:ID
* Param int nQuality:
* @Return bool:truefalse
*/
//bool setPetSkin(void* pEntity, int nPetId,int configId,int nQuality);
/*
* Comments:
* Param void * pEntity:
* Param int nPetId:ID
* Param int nRate:
* @Return bool:truefalse
*/
//bool setPetMergeRate(void* pEntity, int nPetId,int nRate);
/*
* Comments:
* Param void * pEntity:
* Param int nPetId:ID
* @Return bool:truefalse
*/
//bool enlargePetSkillSlot(void * pEntity, int nPetId);
};
//tolua_end