URL:
  <http://gna.org/patch/?2626>

                 Summary: Lua Aspect Foundation
                 Project: Battle for Wesnoth
            Submitted by: nephro
            Submitted on: Thu 07 Apr 2011 12:23:11 PM GMT
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

This patch enables AI developers to create aspects using Lua. It allows users
not only to create static values in the form "value = something", but also
"code = << lua code here >>", where the code can do any calculations,
branching, etc before returning the value of the aspect.

This patch isn't a complete Lua aspect implementation, its purpose is to show
the foundation to other developers, to discuss and and extend/complete it, if
everyone is satisfied with the way it's done.
The code contains some workarounds that I will fix after the patch is
evaluated. I could fix them before submitting this, but it would take some
time to get acquainted with some new concepts, and the patch would be delayed
again.

P.S. I only edited SConstruct and CMakeList.txt, since I don't have a
possibility of testing other building systems at the moment.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 07 Apr 2011 12:23:11 PM GMT  Name: lua_aspects.patch  Size: 12kB  
By: nephro

<http://gna.org/patch/download.php?file_id=12814>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?2626>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to