From d7befea42b318dcaac0c101ec1ddf09d76bcdae8 Mon Sep 17 00:00:00 2001 From: Ryan Ward Date: Wed, 14 Jun 2017 15:43:15 -0400 Subject: [PATCH] Updated Objects (markdown) --- Objects.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Objects.md b/Objects.md index 6a0f5ca..59b6b73 100644 --- a/Objects.md +++ b/Objects.md @@ -25,13 +25,13 @@ multi:mainloop() -- start the main runner Note: I will not be giving the output to all examples on the wiki As mentioned above you can load a process from file. This can only work if your lua environment allows for the usage of loadstring! -testfile.lua +**testfile.lua** ```lua process:newTLoop(function(self) print("Looping every second...") end,1) ``` -main.lua +**main.lua** ```lua require("multi.all") pro=multi:newProcess("testfile.lua") @@ -50,7 +50,15 @@ multi:mainloop() -- start the main runner Now that we see how we can use Actors on a runner let's get into each Actor and how they work # Actors -* +Here is a list of every actor within the library +* [events](https://github.com/rayaman/multi/wiki/Objects#events) - runner:newEvent(**function** task(self)) +* [alarms](https://github.com/rayaman/multi/wiki/Objects#alarms) - runner:newAlarm(**number** set) +* [loops](https://github.com/rayaman/multi/wiki/Objects#loops) - runner:newLoop(**function** loop(dt,self)) Note: dt stands for the change in time from the objects creation +* [tloops](https://github.com/rayaman/multi/wiki/Objects#tloops) - runner:newTLoop(**function** loop(self), **number** set) +* [steps](https://github.com/rayaman/multi/wiki/Objects#steps) - runner:newStep(**number** start,**number** endAt, [**number** count - defualts to 1 or -1], [**number** skip - defualts to 0]) +* [tsteps](https://github.com/rayaman/multi/wiki/Objects#tsteps) - runner:newTStep(**number** start,**number** endAt, [**number** count - defualts to 1 or -1], [**number** set - defualts to 1]) +* [updaters](https://github.com/rayaman/multi/wiki/Objects#updaters) - runner:newUpdater([**number** skip -- defualts to 0]) +* [watchers](https://github.com/rayaman/multi/wiki/Objects#watchers) - runnet:newWatcher(**table** namespace, **string** name) # Semi-Actors