local GuideGroup_304 = class("GuideGroup_304")
local mapEventConfig = {}
local groupId = 304
local totalStep = 1
local current = 1
function GuideGroup_304:Init(parent, runStep)
	self:BindEvent()
	self.parent = parent
	current = 1
	local funName = "Step_" .. current
	local func = handler(self, self[funName])
	func()
end
function GuideGroup_304:BindEvent()
	if type(mapEventConfig) ~= "table" then
		return
	end
	for nEventId, sCallbackName in pairs(mapEventConfig) do
		local callback = self[sCallbackName]
		if type(callback) == "function" then
			EventManager.Add(nEventId, self, callback)
		end
	end
end
function GuideGroup_304:UnBindEvent()
	if type(mapEventConfig) ~= "table" then
		return
	end
	for nEventId, sCallbackName in pairs(mapEventConfig) do
		local callback = self[sCallbackName]
		if type(callback) == "function" then
			EventManager.Remove(nEventId, self, callback)
		end
	end
end
function GuideGroup_304:SendGuideStep(step)
	self.parent:SendGuideStep(groupId, step)
end
function GuideGroup_304:Clear()
	self.runGuide = false
	self:UnBindEvent()
	self.parent = nil
end
function GuideGroup_304:Step_1()
	current = 1
	local nEntryId = 400501
	EventManager.Hit(EventId.OpenPanel, PanelId.DictionaryEntry, nEntryId)
	self.parent:FinishCurrentStep()
end
function GuideGroup_304:FinishCurrentStep()
	self.msg = nil
	self.openPanelId = nil
	self.waitAinEnd = nil
	self.runGuide = false
	self.waitAnimTime = 0
	if current == totalStep then
		self:SendGuideStep(-1)
		self.parent:ClearCurGuide(true)
		return
	end
	local funName = "Step_" .. current + 1
	local func = handler(self, self[funName])
	func()
end
return GuideGroup_304
