2025-08-17 08:43 CEST

spring: develop 192e0e5d Diff ] Back to Repository ]
Author Committer Branch Timestamp Parent
kloot kloot develop 2011-06-09 23:23:27 develop 22ba8879
Changeset s/AICallIn/RecvSkirmishAIMessage/g to make the AI<-->Lua communications-API consistent
the current (probably final, except for the to-be-added C++ callin) set of functions is

    // Lua callins (UNSYNCED CODE ONLY)
    widget:RecvSkirmishAIMessage(number aiTeam [, string message]) --> string
    gadget:RecvSkirmishAIMessage(number aiTeam [, string message]) --> string

    // Lua callouts (UNSYNCED CODE ONLY)
    Spring.SendSkirmishAIMessage(number aiTeam, string message) --> boolean, [string, ...]

    // C++ callouts
    const char* IAICallback::CallLuaRules(const char* inData, int inSize, int* outSize);
    const char* IAICallback::CallLuaUI(const char* inData, int inSize, int* outSize);
mod - cont/LuaUI/callins.lua Diff ] File ]
mod - cont/LuaUI/widgets.lua Diff ] File ]
mod - cont/base/springcontent/LuaGadgets/callins.lua Diff ] File ]
mod - cont/base/springcontent/LuaGadgets/gadgets.lua Diff ] File ]
mod - rts/ExternalAI/AICallback.cpp Diff ] File ]
mod - rts/ExternalAI/EngineOutHandler.cpp Diff ] File ]
mod - rts/ExternalAI/EngineOutHandler.h Diff ] File ]
mod - rts/Lua/LuaHandle.cpp Diff ] File ]
mod - rts/Lua/LuaHandle.h Diff ] File ]
mod - rts/Lua/LuaHandleSynced.cpp Diff ] File ]
mod - rts/Lua/LuaRules.cpp Diff ] File ]
mod - rts/Lua/LuaUnsyncedCtrl.cpp Diff ] File ]
mod - rts/System/EventHandler.cpp Diff ] File ]