Esempio n. 1
0
        public ResourceCache(AllianceGame owner)
        {
            FontProvider.Register(this);
            ImageProvider.Register(this);

            Owner = owner;
            LoadContent();
        }
Esempio n. 2
0
        public ResourceProvider()
        {
            FontProvider.Register(this);
            ImageProvider.Register(this);

            font     = new Font("Consolas", 8.75f);
            textures = new Dictionary <string, GsImage>();
            images   = new Dictionary <string, FramedImage>();

            LoadTextures();
            LoadImages();
        }