--[[
	This function spawns a set number of tools within each room. Spawn locations are randomly picked, as long as it's 
	within the room, and there is sufficient free space around the ranodmly picked location. 
]]

local ServerStorage = game:GetService("ServerStorage")
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local RoomManager = require(ServerStorage.Source.Managers.RoomManager)
local getRandomClearLocationInRegionAsync = require(ServerStorage.Source.Common.getRandomClearLocationInRegionAsync)

local toolsFolder = ReplicatedStorage.Tools
local gravityFuel = toolsFolder.GravityFuel
local repairKit = toolsFolder.RepairKit
local broom = toolsFolder.Broom
local largeCargo = toolsFolder.LargeCargo
local smallCargo = toolsFolder.SmallCargo
local torch = toolsFolder.Torch
local TOTAL_TOOLS_PER_ROOM = 7
local AREA_CLEAR_SIZE = Vector3.new(5, 5, 5)

local random = Random.new(tick())
