--/////////////////////////////////////////////////////////////////////////////////////////////////
--  (c) Galyana's Ultimate Empire at War Modifications
--  
--     ******    ***        *** ************           ***         ***
--    *      *    *          *   *         *            *           *
--   *        *   *          *   *                      *           *
--  *         *   *          *   *                      *           *
--  *             *          *   *    *         **** *  *           *
--  *             *          *   ******        *    *   *           *
--  *      ****   *          *   *    *       *     *   *    ***    *
--  *         *   *          *   *           *      *   *     *     *
--   *        *    *        *    *           *      *    *    *    *
--    *      *      *      *     *         *  *    **     *   *   *
--     ******        ******     ************   **** **     *******
--/////////////////////////////////////////////////////////////////////////////////////////////////
-- C O N F I D E N T I A L   S O U R C E   C O D E -- D O   N O T   D I S T R I B U T E
--/////////////////////////////////////////////////////////////////////////////////////////////////
--
--            File: GUEaW/Data/Scripts/AI/SpaceMode/BuildStructureSpace.LUA
--
-- Original Editor: Giovanni Galyana
--
--   Final Edit By: Giovanni Galyana
--
--            Date: 7 March, 2019
--
--       Revisions: 2
--
--/////////////////////////////////////////////////////////////////////////////////////////////////

require("pgevents")

function Definitions()

	Category = "Build_Structure_Space"
	IgnoreTarget = true
	TaskForce = {
	{
		"MainForce"
		,"UC_Empire_Defense_Satellite_Laser | UC_Empire_Defense_Satellite_TurboLaser | UC_Empire_Defense_Satellite_Missile | UC_Empire_Defense_Satellite_Flak | UC_Empire_Defense_Satellite_Tractor | UC_Empire_Defense_Satellite_Interdictor = 0,1"
		,"UC_Rebel_Defense_Satellite_Laser | UC_Rebel_Defense_Satellite_TurboLaser | UC_Rebel_Defense_Satellite_Missile | UC_Rebel_Defense_Satellite_Torpedo | UC_Rebel_Defense_Satellite_LRS | UC_Rebel_Defense_Satellite_Repair = 0,1"
		,"UC_Underworld_Defense_Satellite_Laser | UC_Underworld_Defense_Satellite_Missile | UC_Underworld_Defense_Satellite_Plasma | UC_Underworld_Defense_Satellite_MassDriver | UC_Underworld_Defense_Satellite_DBM | UC_Underworld_Defense_Satellite_Sensor = 0,1"
		,"UC_Hutt_Defense_Satellite_Laser | UC_Hutt_Defense_Satellite_Missile | UC_Hutt_Flak_Beam_Turret | UC_Hutt_Beam_Turret | UC_Hutt_Heavy_Beam_Turret | UC_Hutt_Defense_Satellite_Emitter = 0,1"
		,"UC_Pirate_Defense_Satellite_Laser | UC_Pirate_Defense_Satellite_TurboLaser | UC_Pirate_Defense_Satellite_Missile = 0,1"
	}
	}
	RequiredCategories = {"Structure"}
	AllowFreeStoreUnits = false

end

function MainForce_Thread()

	BlockOnCommand(MainForce.Build_All())
	MainForce.Set_Plan_Result(true)
	ScriptExit()
end