Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

概念

写模组前值得先读的几页:

  • 游戏线程:你的 Lua 在哪个线程跑,定时器怎么走。
  • 对象与有效性:为什么旧引用会失效,找不到对象时返回什么。
  • 钩子:钩子挂在哪、什么时候触发、能做什么不能做什么。
  • 模组生命周期:加载、重新加载、禁用时发生什么。