--/////////////////////////////////////////////////////////////////////////////////////////////////
--  (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/LandMode/BuildEconStructure.LUA
--
-- Original Editor: Giovanni Galyana
--
--   Final Edit By: Giovanni Galyana
--
--            Date: 2 October, 2022
--
--       Revisions: 4
--
--/////////////////////////////////////////////////////////////////////////////////////////////////
-- Disabling for now
-- | FCU_UC_Rebel_Farm | FCU_UC_Rebel_Mineral_Processor | FCU_UC_Rebel_Surface_Mine | FCU_UC_Rebel_Refinery | FCU_UC_Rebel_Casino | FCU_UC_Rebel_Ground_Mining_Facility
-- | FCU_UC_Empire_Farm | FCU_UC_Empire_Mineral_Processor | FCU_UC_Empire_Surface_Mine | FCU_UC_Empire_Refinery | FCU_UC_Empire_Casino | FCU_UC_Empire_Ground_Mining_Facility
-- | FCU_UC_Underworld_Farm | FCU_UC_Underworld_Mineral_Processor | FCU_UC_Underworld_Surface_Mine | FCU_UC_Underworld_Refinery | FCU_UC_Underworld_Casino | FCU_UC_Underworld_Ground_Mining_Facility
-- | FCU_UC_Hutts_Farm | FCU_UC_Hutts_Mineral_Processor | FCU_UC_Hutts_Advanced_Mineral_Processor | FCU_UC_Hutts_Surface_Mine | FCU_UC_Hutts_Refinery | FCU_UC_Hutts_Casino | FCU_UC_Hutts_Ground_Mining_Facility

require("pgevents")


function Definitions()
	
	Category = "Build_Econ_Structure"
	IgnoreTarget = true
	TaskForce = {
	{
		"MainForce"
		,"UC_Rebel_Mineral_Processor | UC_Rebel_Ground_Mining_Facility = 0,1"
		,"UC_Empire_Mineral_Processor | UC_Empire_Ground_Mining_Facility = 0,1"
		,"UC_Underworld_Mineral_Processor | UC_Underworld_Ground_Mining_Facility = 0,1"
		,"UC_Hutts_Mineral_Processor | UC_Hutts_Ground_Mining_Facility = 0,1"
		,"UC_Pirate_Mineral_Processor | UC_Pirate_Ground_Mining_Facility = 0,1"
	}
	}
	RequiredCategories = {"Structure"}
	AllowFreeStoreUnits = false

end

function MainForce_Thread()

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