Exemple #1
0
        /// <summary>
        /// Inits this instance.
        /// </summary>
        public static void Initialize()
        {
            FadeSurface = new SdlDotNet.Graphics.Surface(SdlDotNet.Graphics.Video.Screen.Size);

            spriteCache  = new MultiNameLRUCache <string, SpriteSheet>(spriteCacheSize);
            spellCache   = new Cache <string, SpellSheet>(spellCacheSize);
            mugshotCache = new MultiNameLRUCache <string, Mugshot>(mugshotCacheSize);
            tileCache    = new TileCache(MAX_TILES);
        }
        /// <summary>
        /// Inits this instance.
        /// </summary>
        public static void Initialize()
        {
            FadeSurface = new SdlDotNet.Graphics.Surface(SdlDotNet.Graphics.Video.Screen.Size);

            spriteCache = new MultiNameLRUCache<string, SpriteSheet>(spriteCacheSize);
            spellCache = new Cache<string, SpellSheet>(spellCacheSize);
            mugshotCache = new MultiNameLRUCache<string, Mugshot>(mugshotCacheSize);
            tileCache = new TileCache(MAX_TILES);
        }