using System.Collections.Generic; namespace GFGGame { public partial class {CfgArrayName} : SingletonBase<{CfgArrayName}> { private Dictionary<{keyType}, {CfgName}> _cfgDic = new Dictionary<{keyType}, {CfgName}>(); private {CfgName}[] _allDatas; public {CfgName} GetCfg({keyType} {keyName}) { return ConfigUtil.GetCfg<{keyType}, {CfgName}>("{CfgArrayName}", "{keyName}", {keyName}, _cfgDic); } public {CfgName}[] dataArray { get { if(_allDatas == null) { _allDatas = ConfigUtil.GetAllCfgs<{CfgName}>("{CfgArrayName}"); } return _allDatas; } } } }