修复HandleRequestAction接口问题

This commit is contained in:
子沐呀
2024-07-21 18:09:32 +08:00
Unverified
parent 8ab2ee0497
commit 7a0e3d8019
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -234,4 +234,4 @@ declare class Event {
containerId: number
) => void
): boolean;
}
}
+2 -2
View File
@@ -266,7 +266,7 @@ void Export_Event_API() {
}
case doHash("HandleRequestAction"): {
auto Call = RemoteCall::importAs<
bool(Player * player, std::string const& actionType, std::string const& ContainerNetId, int slot)>(
bool(Player * player, std::string const& actionType, int ContainerNetId, int slot)>(
eventName,
eventId
);
@@ -278,7 +278,7 @@ void Export_Event_API() {
result = Call(
&ev.self(),
magic_enum::enum_name(requestAction->mActionType).data(),
magic_enum::enum_name(requestAction->getSrc().mOpenContainerNetId).data(),
(int)requestAction->getSrc().mOpenContainerNetId,
requestAction->getSrc().mSlot
);
} catch (...) {}