local P=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local Y=require(P.Packages.Knit)local z=require(P.Game.Modules.State)local V=require(P.Game.Shared.RoduxWatcher)local I=V(z)local s=Y.CreateController({Name="\080\108\111\116\067\111\110\116\114\111\108\108\101\114";MyPlot=nil})function s.KnitStart(P) end function s.KnitInit(P)I(function(P)return P.data.GridObjects end,function(P)z:dispatch({type="\083\101\116\079\098\106\101\099\116\115",objects=P})end)end return s
-- PlotController
-- 0_1195
-- May 13, 2022

--[[

is there a better way to get current plot for localplayer?

]]

local ReplicatedStorage = game:GetService("ReplicatedStorage")

local Knit = require(ReplicatedStorage.Packages.Knit)
local State = require(ReplicatedStorage.Game.Modules.State)
local RoduxWatcher = require(ReplicatedStorage.Game.Shared.RoduxWatcher)

local watcher = RoduxWatcher(State)

local Controller = Knit.CreateController({
	Name = "PlotController",

	MyPlot = nil,
})

function Controller:KnitStart() end

function Controller:KnitInit()
	watcher(function(state)
		return state.data.GridObjects
	end, function(gridObjects)
		State:dispatch({
			type = "SetObjects",
			objects = gridObjects,
		})
	end)
end

return Controller
