Follow-up Comment #7, patch #1432 (project wesnoth):

As of,
http://svn.gna.org/viewcvs/wesnoth/trunk/data/ai/dev/lua_ai.cfg?rev=41273&view=markup
the ai config looks like:

 [ai]
    id=ai_lua_simple
    description=Lua Simple AI
    version=10710
    [engine]
       name="lua"
       code="side = ... local ai = wesnoth.dofile('ai/lua/simple_ai.lua')
return ai"
    [/engine]
    [stage]
        engine="lua"
        code= "(...):play_turn()"
    [/stage]
 [/ai]

Questions:
1) Do you think that 'method=' shortcut is really necessary ?
2) is it a good way to make 'side' available to the external file? or it's
better to introduce a version of 'dofile' which accepts a second parameter ?
or it's already possible to do ?

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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