local PveBulletTemplateManager = BaseClass("PveBulletTemplateManager")
local PveBulletTemplate = require("DataCenter.PveBullet.PveBulletTemplate")
local __init = function(self)
  self.templateDict = {}
end
local __delete = function(self)
end
local GetTemplate = function(self, id)
  id = tonumber(id)
  if table.containsKey(self.templateDict, id) then
    return self.templateDict[id]
  end
  local lineData = LocalController:instance():getLine(TableName.LW_Bullet, id)
  if lineData == nil then
    Logger.LogError("PveBulletTemplate GetTemplate lineData is nil id:" .. id)
    return nil
  end
  local template = PveBulletTemplate.New()
  template:InitData(lineData)
  self.templateDict[id] = template
  return template
end
PveBulletTemplateManager.__init = __init
PveBulletTemplateManager.__delete = __delete
PveBulletTemplateManager.GetTemplate = GetTemplate
return PveBulletTemplateManager
