Events:Lua中的多播事件,非常简单且快速

时间:2021-05-16 12:01:40
【文件属性】:
文件名称:Events:Lua中的多播事件,非常简单且快速
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-16 12:01:40
Lua 大事记 lua中的多播事件。 它非常简单,快速,并且与任何lua运行时兼容。 支持功能: 多事件单事件实例 多句柄单事件 事件合并/合并 在任何地方缓存初始化事件 异常静音/捕获 e.on(“ EventName”,func)语法,或e(“ EventName”,func) 安装与使用 下载Events.lua文件并放入lua搜索路径或当前目录。 从lua将其作为文件模块加载。 使用Events.new()获得一个多事件实例。 local e = require ( ' Events ' ) -- init event 'Begin', with first handle e. on ( " Begin " , function () .. end ) -- fire e. Begin () 更多例子 -- (next...) -- more events, ex: "End"
【文件预览】:
Events-master
----Events.lua(2KB)
----LICENSE(11KB)
----README.md(1KB)
----testcase()
--------t_catch_exceptions.lua(726B)
--------t_base_demo.lua(2KB)
--------t_cache_events.lua(1KB)

网友评论