---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by DY.
--- DateTime: 2020/8/25 10:23
---

local Config = Config or class("GeneralSettingConfig");

local EVN_PATH = "ugc_common/settings/character/schem/evn.tab"

local BACKGROUND_ZONE = {"ÉÏ","ÖÐ","ÏÂ"}

function Config:ctor()
end

function Config:dtor()
    --
end

function Config:GetEvnName_Path()
    local tabFile = LTabFile:new(EVN_PATH);
    local nRowCount = tabFile:GetRowCount()
    local nColName = tabFile:GetColIdxByName("Name")
    local nColSourcePath = tabFile:GetColIdxByName("SourcePath")
    local tbEvnName = {}
    local tbEvnPath = {}
    for i = 1, nRowCount do
        local szName = tabFile:GetString(i,nColName,"")
        local szPath = tabFile:GetString(i,nColSourcePath,"")
        tbEvnName[i] = util.a2u8(szName)
        tbEvnPath[i] = szPath
    end
    return tbEvnName,tbEvnPath
end

function Config:GetBackgroundZone()
    local tbBackgroundZone = {}
    for k,v in ipairs(BACKGROUND_ZONE) do
        tbBackgroundZone[k] = util.a2u8(v)
    end
    return tbBackgroundZone
end

function Config:GetCameraResolution()
    local tbCameraResolution = KLPlatformNative:GetCameraResolution()
    tbCameraResolution = JSON.Loads(tbCameraResolution)
    return tbCameraResolution
end


GeneralSettingCfg = Config:new();