Beispiel #1
0
        public static DDMusic GetMusic(DDHashedData data)
        {
            if (!MusicCache.ContainsKey(data.Hash))
            {
                MusicCache.Add(data.Hash, new DDMusic(() => data.Entity));
            }

            return(MusicCache[data.Hash]);
        }
Beispiel #2
0
        public static DDSE GetSE(DDHashedData data)
        {
            if (!SECache.ContainsKey(data.Hash))
            {
                SECache.Add(data.Hash, new DDSE(() => data.Entity));
            }

            return(SECache[data.Hash]);
        }
Beispiel #3
0
        public static DDPicture GetPicture(DDHashedData data)
        {
            if (!PictureCache.ContainsKey(data.Hash))
            {
                PictureCache.Add(data.Hash, DDPictureLoaders.Standard(() => data.Entity));
            }

            return(PictureCache[data.Hash]);
        }