function module.new()local M=setmetatable({},methods)M.ObjectPool=moduleObjectPool.new(OBJECT_POOL_SIZE)M.MessageCreators=GetMessageCreators()M.DefaultCreatorType=messageCreatorUtil.DEFAULT_MESSAGE_CREATOR messageCreatorUtil:RegisterObjectPool(M.ObjectPool)return M end function module.RegisterGuiRoot(l,M)messageCreatorUtil:RegisterGuiRoot(M)end function module.GetStringTextBounds(w,M,l,v,Z)return messageCreatorUtil:GetStringTextBounds(M,l,v,Z)end return module


function module.new()
	local obj = setmetatable({}, methods)

	obj.ObjectPool = moduleObjectPool.new(OBJECT_POOL_SIZE)
	obj.MessageCreators = GetMessageCreators()
	obj.DefaultCreatorType = messageCreatorUtil.DEFAULT_MESSAGE_CREATOR

	messageCreatorUtil:RegisterObjectPool(obj.ObjectPool)

	return obj
end

function module:RegisterGuiRoot(root)
	messageCreatorUtil:RegisterGuiRoot(root)
end

function module:GetStringTextBounds(text, font, textSize, sizeBounds)
	return messageCreatorUtil:GetStringTextBounds(text, font, textSize, sizeBounds)
end

return module
