本帖最后由 月缺花残 于 2022-4-8 23:04 编辑
问题一:
//---------------------TPlayObject类创建时调用-----------------------------
function GetHookPlayObjectCreate: TObjectAction; stdcall;
procedure SetHookPlayObjectCreate(Value: TObjectAction); stdcall;
//---------------------TPlayObject类释放时调用-----------------------------
function GetHookPlayObjectFree: TObjectAction; stdcall;
procedure SetHookPlayObjectFree(Value: TObjectAction); stdcall;
//---------------------THeroObject类创建时调用-----------------------------
function GetHookHeroObjectCreate: TObjectAction; stdcall;
procedure SetHookHeroObjectCreate(Value: TObjectAction); stdcall;
//---------------------THeroObject类释放时调用-----------------------------
function GetHookHeroObjectFree: TObjectAction; stdcall;
procedure SetHookHeroObjectFree(Value: TObjectAction); stdcall;
//---------------------TBaseObject类创建时调用-----------------------------
function GetHookBaseObjectCreate: TObjectAction; stdcall;
procedure SetHookBaseObjectCreate(Value: TObjectAction); stdcall;
//---------------------TBaseObject类释放时调用-----------------------------
function GetHookBaseObjectFree: TObjectAction; stdcall;
procedure SetHookBaseObjectFree(Value: TObjectAction); stdcall;
//---------------------TBaseObject类运行时调用-----------------------------
function GetHookBaseObjectRun: TObjectAction; stdcall;
procedure SetHookBaseObjectRun(Value: TObjectAction); stdcall;
以上函数在创建时无法通过tobjectaction获取到对象,但是可以在运行时调用获取到具体对象。
问题二:
在人物角色脚下坐标点击鼠标左键时,人物角色不进行移动和转向时,会反复激活CM_PICKUP这个消息,并由此消息引发的一些具体操作会不断重复。
|