Exemple #1
0
        public ResourceCache(AllianceGame owner)
        {
            FontProvider.Register(this);
            ImageProvider.Register(this);

            Owner = owner;
            LoadContent();
        }
Exemple #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();
        }