hooker:一个模仿gmod钩子库的简单lua钩子库

时间:2021-05-17 04:38:02
【文件属性】:
文件名称:hooker:一个模仿gmod钩子库的简单lua钩子库
文件大小:2KB
文件格式:ZIP
更新时间:2021-05-17 04:38:02
Lua 妓女 一个模仿简单lua。 露出并勾起钩子。 它是为在love2d游戏中使用而编写的,但是足够通用,可以在任何兼容的lua环境中工作。 要求 Lua> = 5.1 用法 您可以在代码中的任何地方调用一个钩子,并创建一个要钩子的事件。 hooker = require " hooker " function computeDistance ( a , b ) hooker. Call ( " preComputeDistance " , a, b) --[[ by putting this hook here, we can subscribe to any calls to computeDistance and we can make use of the vars a and b without overwriting the function ]] local d
【文件预览】:
hooker-master
----README.md(3KB)
----hooker.lua(2KB)

网友评论