Skip to content

Commit

Permalink
add task type
Browse files Browse the repository at this point in the history
  • Loading branch information
ketoo committed Aug 29, 2017
1 parent 46da9be commit 8a14203
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
5 changes: 5 additions & 0 deletions NFComm/NFPluginModule/NFITaskModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
class NFITaskModule : public NFIModule
{
public:
enum TaskType
{
TT_KILL_MONSTER,
TT_KILL_PLAYER,
};

};

Expand Down
7 changes: 1 addition & 6 deletions NFMidWare/NFTaskPlugin/NFCTaskModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,4 @@ void NFCTaskModule::OnClientAcceptTask(const NFSOCK nSockIndex, const int nMsgID
void NFCTaskModule::OnClientPushTask(const NFSOCK nSockIndex, const int nMsgID, const char* msg, const uint32_t nLen)
{
CLIENT_MSG_PROCESS( nMsgID, msg, nLen, NFMsg::ReqCompeleteTask)
}

void NFCTaskModule::OnClientPushCustom(const NFSOCK nSockIndex, const int nMsgID, const char* msg, const uint32_t nLen)
{
//CLIENT_MSG_PROCESS( nMsgID, msg, nLen, NFMsg::cu)
}
}
2 changes: 1 addition & 1 deletion NFMidWare/NFTaskPlugin/NFCTaskModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class NFCTaskModule
protected:
void OnClientAcceptTask(const NFSOCK nSockIndex, const int nMsgID, const char* msg, const uint32_t nLen);
void OnClientPushTask(const NFSOCK nSockIndex, const int nMsgID, const char* msg, const uint32_t nLen);
void OnClientPushCustom(const NFSOCK nSockIndex, const int nMsgID, const char* msg, const uint32_t nLen);

private:
NFINetModule* m_pNetModule;
NFIKernelModule* m_pKernelModule;
Expand Down

0 comments on commit 8a14203

Please sign in to comment.