Example #1
0
        public static void SetCustomList <T>(string key, string field, List <T> val) where T : IGDEData
        {
            List <string> customKeys = new List <string>();

            val.ForEach(x => customKeys.Add(x.Key));
            GDEDataManager.SetStringList(key, field, customKeys);
        }
Example #2
0
        public GDEReadSceneUnityTypesData ShallowClone()
        {
            string newKey = Guid.NewGuid().ToString();
            GDEReadSceneUnityTypesData newClone = new GDEReadSceneUnityTypesData(newKey);


            Dictionary <string, object> dict;

            GDEDataManager.Get(_key, out dict);

            string path;

            dict.TryGetString(go_fieldKey, out path);
            GDEDataManager.SetString(newClone.Key, go_fieldKey, path);
            newClone.go_field = go_field;

            dict.TryGetString(tex_fieldKey, out path);
            GDEDataManager.SetString(newClone.Key, tex_fieldKey, path);
            newClone.tex_field = tex_field;

            dict.TryGetString(mat_fieldKey, out path);
            GDEDataManager.SetString(newClone.Key, mat_fieldKey, path);
            newClone.mat_field = mat_field;

            dict.TryGetString(aud_fieldKey, out path);
            GDEDataManager.SetString(newClone.Key, aud_fieldKey, path);
            newClone.aud_field = aud_field;

            dict.TryGetString(vid_fieldKey, out path);
            GDEDataManager.SetString(newClone.Key, vid_fieldKey, path);
            newClone.vid_field = vid_field;


            List <string> pathList;

            dict.TryGetStringList(go_list_fieldKey, out pathList);
            GDEDataManager.SetStringList(newClone.Key, go_list_fieldKey, pathList);
            newClone.go_list_field = new List <GameObject>(go_list_field);
            newClone.Set_go_list_field();

            return(newClone);
        }
        public static void SetCustomList <T>(string key, string field, List <T> val) where T : IGDEData
        {
            List <string> customKeys = new List <string>();

            if (val != null)
            {
                val.ForEach(x => {
                    if (x != null)
                    {
                        customKeys.Add(x.Key);
                    }
                    else
                    {
                        customKeys.Add(string.Empty);
                    }
                });
            }

            GDEDataManager.SetStringList(key, field, customKeys);
        }
 public void Set_string_list_field()
 {
     GDEDataManager.SetStringList(_key + "_" + string_list_fieldKey, string_list_field);
 }
 public void Set_cust_string_list()
 {
     GDEDataManager.SetStringList(_key, cust_string_listKey, cust_string_list);
 }
Example #6
0
 public void Set_AllHeroes()
 {
     GDEDataManager.SetStringList(_key, AllHeroesKey, AllHeroes);
 }
Example #7
0
 public void Set_TestList()
 {
     GDEDataManager.SetStringList(_key, TestListKey, TestList);
 }
Example #8
0
 public void Set_taskRewards()
 {
     GDEDataManager.SetStringList(_key, taskRewardsKey, taskRewards);
 }