Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/components/ICmpAIManager.cpp
Show All 13 Lines | |||||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
* along with 0 A.D. If not, see <http://www.gnu.org/licenses/>. | * along with 0 A.D. If not, see <http://www.gnu.org/licenses/>. | ||||
*/ | */ | ||||
#include "precompiled.h" | #include "precompiled.h" | ||||
#include "ICmpAIManager.h" | #include "ICmpAIManager.h" | ||||
#include "scriptinterface/FunctionWrapper.h" | |||||
#include "scriptinterface/ScriptInterface.h" | |||||
#include "simulation2/system/InterfaceScripted.h" | #include "simulation2/system/InterfaceScripted.h" | ||||
#include "lib/file/vfs/vfs_util.h" | #include "lib/file/vfs/vfs_util.h" | ||||
#include "ps/Filesystem.h" | #include "ps/Filesystem.h" | ||||
BEGIN_INTERFACE_WRAPPER(AIManager) | BEGIN_INTERFACE_WRAPPER(AIManager) | ||||
DEFINE_INTERFACE_METHOD_4("AddPlayer", void, ICmpAIManager, AddPlayer, std::wstring, player_id_t, uint8_t, std::wstring) | DEFINE_INTERFACE_METHOD("AddPlayer", ICmpAIManager, AddPlayer) | ||||
DEFINE_INTERFACE_METHOD_0("TryLoadSharedComponent", void, ICmpAIManager, TryLoadSharedComponent) | DEFINE_INTERFACE_METHOD("TryLoadSharedComponent", ICmpAIManager, TryLoadSharedComponent) | ||||
DEFINE_INTERFACE_METHOD_0("RunGamestateInit", void, ICmpAIManager, RunGamestateInit) | DEFINE_INTERFACE_METHOD("RunGamestateInit", ICmpAIManager, RunGamestateInit) | ||||
END_INTERFACE_WRAPPER(AIManager) | END_INTERFACE_WRAPPER(AIManager) | ||||
// Implement the static method that finds all AI scripts | // Implement the static method that finds all AI scripts | ||||
// that can be loaded via AddPlayer: | // that can be loaded via AddPlayer: | ||||
struct GetAIsHelper | struct GetAIsHelper | ||||
{ | { | ||||
NONCOPYABLE(GetAIsHelper); | NONCOPYABLE(GetAIsHelper); | ||||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator