From 9224412274e1e1a31a959083bb257a7d6ab2b113 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Fri, 19 Aug 2016 20:40:12 -0400 Subject: Add Sly manual. --- manuals/sly/Live-Reloading.html | 101 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 manuals/sly/Live-Reloading.html (limited to 'manuals/sly/Live-Reloading.html') diff --git a/manuals/sly/Live-Reloading.html b/manuals/sly/Live-Reloading.html new file mode 100644 index 0000000..e4ebf96 --- /dev/null +++ b/manuals/sly/Live-Reloading.html @@ -0,0 +1,101 @@ + + + + + +Sly: Live Reloading + + + + + + + + + + + + + + + + + + + + +
+

+Next: , Previous: , Up: Utilities   [Contents][Index]

+
+
+ +

4.6.2 Live Reloading

+ +
+
(use-modules (sly utils live-reload))
+
+ +

The live-reload module enables Sly programs to react to changes in the +file system and reload assets automatically, which is useful when +using external programs such as an image editor or map editor. This +makes it easy to see the changes made to game assets quickly. +

+
+
Function: live-reload proc [polling-interval]
+

Return a new procedure that re-applies proc whenever the +associated file is modified. The new procedure returns a signal +(see Signals) that contains the return value of proc. The +first argument to proc must be a file name string. +

+

A simple polling method is used to test for updates. Files are polled +every polling-interval ticks (120 by default). +

+ + + + + + -- cgit v1.2.3