Пример #1
0
    public static Dictionary <string, List <SpriteInfo> > InitSpriteList()
    {
        Dictionary <string, List <SpriteInfo> > spriteInfos = new Dictionary <string, List <SpriteInfo> >();

        foreach (DictionaryName name in Enum.GetValues(typeof(DictionaryName)))
        {
            List <SpriteInfo> tempList = readSource.LoadSpiteName(name.ToString());
            spriteInfos.Add(name.ToString(), tempList);
        }
        return(spriteInfos);
    }