init
This commit is contained in:
19
server/LogicServer/base/ScriptEventDispatcher.h
Normal file
19
server/LogicServer/base/ScriptEventDispatcher.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
|
||||
class CActor;
|
||||
|
||||
// 玩家消息处理
|
||||
|
||||
class EventDispatcher
|
||||
{
|
||||
private:
|
||||
EventDispatcher(){};
|
||||
~EventDispatcher(){};
|
||||
|
||||
public:
|
||||
static void Init();
|
||||
// 处理玩家消息
|
||||
static bool OnActorEvent(CActor* pActor, INT_PTR nEventID, CScriptValueList & paramList, CScriptValueList & retParamList);
|
||||
// 注册脚本处理的消息
|
||||
static bool RegistActorEvent(INT_PTR nEventID);
|
||||
};
|
||||
Reference in New Issue
Block a user