Animals MAIs: add individual engine macros for each AI

... so that only the code for the animal AI used is loaded.
This commit is contained in:
mattsc 2013-10-22 08:29:48 -07:00
parent da9512bb49
commit e730d94591

View file

@ -106,6 +106,146 @@
[/ai]
#enddef
#define MICRO_AI_BIG_ANIMALS
# Sets up all the big_animals Micro AIs for a side
# Include this macro in the side definition
# Needs to be in [side], does not work in [modify_side]
[ai]
id=animals
description=_"Big Animals Micro AI"
version=10710
[engine]
name="lua"
code= <<
local ai = ...
return wesnoth.require("ai/micro_ais/ais/mai_big_animals_engine.lua").init(ai)
>>
[/engine]
{RCA_STAGE}
[/ai]
#enddef
#define MICRO_AI_FOREST_ANIMALS
# Sets up all the forest_animals Micro AIs for a side
# Include this macro in the side definition
# Needs to be in [side], does not work in [modify_side]
[ai]
id=animals
description=_"Forest Animals Micro AI"
version=10710
[engine]
name="lua"
code= <<
local ai = ...
return wesnoth.require("ai/micro_ais/ais/mai_forest_animals_engine.lua").init(ai)
>>
[/engine]
{RCA_STAGE}
[/ai]
#enddef
#define MICRO_AI_HERDING
# Sets up all the herding Micro AIs for a side
# Include this macro in the side definition
# Needs to be in [side], does not work in [modify_side]
[ai]
id=animals
description=_"Herding Micro AI"
version=10710
[engine]
name="lua"
code= <<
local ai = ...
return wesnoth.require("ai/micro_ais/ais/mai_herding_engine.lua").init(ai)
>>
[/engine]
{RCA_STAGE}
[/ai]
#enddef
#define MICRO_AI_HUNTER
# Sets up all the hunter Micro AIs for a side
# Include this macro in the side definition
# Needs to be in [side], does not work in [modify_side]
[ai]
id=animals
description=_"Hunter Micro AI"
version=10710
[engine]
name="lua"
code= <<
local ai = ...
return wesnoth.require("ai/micro_ais/ais/mai_hunter_engine.lua").init(ai)
>>
[/engine]
{RCA_STAGE}
[/ai]
#enddef
#define MICRO_AI_SWARM
# Sets up all the swarm Micro AIs for a side
# Include this macro in the side definition
# Needs to be in [side], does not work in [modify_side]
[ai]
id=animals
description=_"Swarm Micro AI"
version=10710
[engine]
name="lua"
code= <<
local ai = ...
return wesnoth.require("ai/micro_ais/ais/mai_swarm_engine.lua").init(ai)
>>
[/engine]
{RCA_STAGE}
[/ai]
#enddef
#define MICRO_AI_WOLVES
# Sets up all the wolves Micro AIs for a side
# Include this macro in the side definition
# Needs to be in [side], does not work in [modify_side]
[ai]
id=animals
description=_"Wolves Micro AI"
version=10710
[engine]
name="lua"
code= <<
local ai = ...
return wesnoth.require("ai/micro_ais/ais/mai_wolves_engine.lua").init(ai)
>>
[/engine]
{RCA_STAGE}
[/ai]
#enddef
#define MICRO_AI_WOLVES_MULTIPACKS
# Sets up all the wolves_multipacks Micro AIs for a side
# Include this macro in the side definition
# Needs to be in [side], does not work in [modify_side]
[ai]
id=animals
description=_"Multipack Wolves Micro AI"
version=10710
[engine]
name="lua"
code= <<
local ai = ...
return wesnoth.require("ai/micro_ais/ais/mai_wolves_multipacks_engine.lua").init(ai)
>>
[/engine]
{RCA_STAGE}
[/ai]
#enddef
#define MICRO_AI_GUARDIAN
# Sets up the guardian Micro AIs for a side
# Include this macro in the side definition