Пример #1
0
        private CocoDressSceneHolder GenerateScene(string sceneId, Dictionary <string, HashSet <string> > categoryItemIdSet)
        {
            var sceneHolder = new CocoDressSceneHolder {
                id = sceneId
            };

            foreach (var kvpItemIds in categoryItemIdSet)
            {
                var categoryHolder = new CocoDressSceneCategoryHolder {
                    id = kvpItemIds.Key
                };
                foreach (var itemId in kvpItemIds.Value)
                {
                    var itemHolder = new CocoDressSceneItemHolder {
                        id = itemId
                    };
                    categoryHolder.itemHolders.Add(itemHolder);
                }
                sceneHolder.categoryHolders.Add(categoryHolder);
            }

            return(sceneHolder);
        }
Пример #2
0
 private CocoDressSceneConfigHolder GenerateSceneConfig(CocoDressSceneHolder sceneHolder)
 {
     return(GenerateConfig <CocoDressSceneConfigHolder, CocoDressSceneHolder> (sceneHolder, "dress_scene"));
 }