function StateHolder.canTransition(I,Q)if not I._allowedTransitions[Q]then Logger.error("\083\116\097\116\101",Q,"\100\111\101\115 \110\111\116 \101\120\105\115\116\033")return false end for I,v in pairs(I._allowedTransitions[I.current])do if v==Q then return true end end return false end return StateHolder

function StateHolder:canTransition(stateName)
	if not self._allowedTransitions[stateName] then
		Logger.error("State", stateName, "does not exist!")
		return false
	end

	for _, transitionState in pairs(self._allowedTransitions[self.current]) do
		if transitionState == stateName then
			return true
		end
	end

	return false
end

return StateHolder
