예제 #1
0
        public ConfigT GetConfig <ConfigT>(int dataName, int groupName, string configName, int id) where ConfigT : IConfig, new()
        {
            ConfigData                data    = Datas.GetData <ConfigData>(dataName);
            ConfigsResult             configs = data.GetConfigs(groupName);
            Dictionary <int, ConfigT> mapper  = configs.GetConfigRaw <ConfigT>(configName, out int statu);

            return(statu == 0 ? mapper[id] : default);
예제 #2
0
        public Dictionary <int, ConfigT> GetConfig <ConfigT>(int dataName, int groupName, string configName, out int statu) where  ConfigT : IConfig, new()
        {
            ConfigData                data    = Datas.GetData <ConfigData>(dataName);
            ConfigsResult             configs = data.GetConfigs(groupName);
            Dictionary <int, ConfigT> dic     = configs.GetConfigRaw <ConfigT>(configName, out statu);

            return(dic);
        }