local R=require(script.Parent.Parent.Packages.Cryo)local N=require(script.Parent.Parent.Constants)local p={}p.__index=p function p.new(R)if not R then warn("\073\110\118\097\108\105\100 \112\108\097\121\101\114 \113\117\111\116\097 \112\097\115\115\101\100\058",R)end local N={placedSpots={};quota=R,toRemove=nil}setmetatable(N,p)return N end
--[[
	Manager for a single player's spots.
]]
local Cryo = require(script.Parent.Parent.Packages.Cryo)
local constants = require(script.Parent.Parent.Constants)

local PlayerSpots = {}
PlayerSpots.__index = PlayerSpots

function PlayerSpots.new(quota)
	if not quota then
		warn("Invalid player quota passed:", quota)
	end

	local self = {
		-- Table of { canvas, spot, createdAt } that a player has placed surface art in
		placedSpots = {},

		-- Maximum number of artwork that we can place for a player
		quota = quota,

		-- Index of spot to remove if player exceeds quota - this is set during spot assignment
		toRemove = nil,
	}

	setmetatable(self, PlayerSpots)

	return self
end
