Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Scripting with NLua and                                     Xamarindomingo, 14 de abril de 13
Why scripting?                 • Isolate behaviors/complex logic                 • Change behavior without rebuild        ...
01 [Preserve]              02 public	  class	  Scriptable	                03 {              04                       	  	 ...
local	  s	  =	  Scriptable	  ("Do	  Something")                     s:DoSomething	  ()                      	  	  	  	  	 ...
Thank you                 • http://github.com/nlua/nlua                 • http://nlua.org                 • http://lua.org...
Upcoming SlideShare
Loading in …5
×

NLua with Xamarin

1,204 views

Published on

  • Be the first to comment

NLua with Xamarin

  1. 1. Scripting with NLua and Xamarindomingo, 14 de abril de 13
  2. 2. Why scripting? • Isolate behaviors/complex logic • Change behavior without rebuild • Allow customization/extensiondomingo, 14 de abril de 13
  3. 3. 01 [Preserve] 02 public  class  Scriptable   03 { 04          public  Scriptable  (string  param) 05          {  //  ...  } 06 07          public  void  DoSomething  () 08          { 09                  Console.WriteLine  ("Do  Something"); 10          } 11 } 12 13 14 15 16domingo, 14 de abril de 13
  4. 4. local  s  =  Scriptable  ("Do  Something") s:DoSomething  ()          public  void  ViewDidLoad  (string  param)          {                          var  lua  =  new  Lua  ();                  lua.DoString  ("a  =  10");                  lua.DoFile  (luaFile);          }          //  ...  }          lua.Dispose  ();          //  ...  } }domingo, 14 de abril de 13
  5. 5. Thank you • http://github.com/nlua/nlua • http://nlua.org • http://lua.orgdomingo, 14 de abril de 13

×