From 091cd90a0db7ac66f654d2901db8d88de950eb46 Mon Sep 17 00:00:00 2001 From: Ryan Ward Date: Tue, 20 Jun 2017 23:42:45 -0400 Subject: [PATCH] Changed some features! Updated the ReadMe to reflect said changes --- README.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d9f6118..45dec0f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,27 @@ -# multi Version: 1.5.0 +# multi Version: 1.6.0 +Updated from 1.5.0 +Changed: steps and loops +```lua +-- Was +step:OnStep(function(pos,self) -- same goes for tsteps as well + print(pos) +end) +multi:newLoop(function(dt,self) + print(dt) +end) +-- Is now +step:OnStep(function(self,pos) -- same goes for tsteps as well + print(pos) +end) +multi:newLoop(function(self,dt) + print(dt) +end) +``` +Reasoning I wanted to keep objects consistant, but a lot of my older libraries use the old way of doing things. Therefore I added a backwards module +```lua +require("multi.all") +require("multi.compat.backwards[1,5,0]") -- allows for the use of features that were scrapped/changed in 1.6.0+ +``` Updated from 1.4.1 Added: - An easy way to manage timeouts