DragonNest/Server/ServerCommon/SecondarySkillEventHandlerServer.h
2024-12-20 16:56:44 +08:00

30 lines
2.2 KiB
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.


#pragma once
#if defined( PRE_ADD_SECONDARY_SKILL )
#include "SecondarySkillEventHandler.h"
class CSecondarySkillEventHandlerServer:public ISecondarySkillEventHandler,public TBoostMemoryPool<CSecondarySkillEventHandlerServer>
{
public:
CSecondarySkillEventHandlerServer( CDNUserSession* pSession );
virtual ~CSecondarySkillEventHandlerServer(){}
virtual bool OnCreate( CSecondarySkill* pSkill );
virtual bool OnDelete( CSecondarySkill* pSkill );
virtual bool OnAddRecipe( CSecondarySkillRecipe* pRecipe, bool bIsCash );
virtual bool OnDeleteRecipe( CSecondarySkillRecipe* pRecipe );
virtual bool OnExtractRecipe( CSecondarySkillRecipe* pRecipe, bool bIsCash );
virtual bool OnChangeExp( CSecondarySkill* pSkill, int iAddExp );
virtual bool OnChangeRecipeExp( CSecondarySkillRecipe* pRecipe, int iAddExp );
virtual bool OnManufacture( CSecondarySkill* pSkill, CSecondarySkillRecipe* pRecipe, bool bIsStart );
virtual bool OnCancelManufacture( CManufactureSkill* pManufactureSkill, bool bSend );
protected:
CDNUserSession* m_pSession;
};
#endif // #if defined( PRE_ADD_SECONDARY_SKILL )