Giter Site home page Giter Site logo

lua_hotupdate's Introduction

接口包含

  • Init(UpdateListFile, RootPath, [, FailNotify, ENV])
  • Update()

Init负责初始化,RootPath是你的lua文件目录,该目录及子目录下的所有的lua文件都被纪录。UpdateListFile是一个lua路径,要求这个lua文件返回一个table,这个table包含想要热更新的文件的文件名。

Update每运行一次就对UpdateListFile里面的文件进行热更新,只更新函数,不更新数据。

~限Windows平台+lua5.1使用, 详细配置lua热更新 5.3的版本 用在了虚幻4上

API:

  • Init(UpdateListFile, RootPath, [, FailNotify, ENV])
  • Update()

function Init() is responsible for Initialization, Just needed call once. The parameter "UpdateListFile" is a lua path which will be used by require lua api, The file should return a table contains filename of the file which was desired for hotreload.The parameter "RootPath" is a table, contains rootpaths of your xxx.lua file....

function Update() is responsible for doing hotreload action.It update all function in file which was included in the require(UpdateListFile).you can run a timer to call Update() every few seconds.

only works on windows platform and lua5.1. thanks~

例子动图

lua_hotupdate's People

Contributors

asqbtcupid avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.