Ejemplo n.º 1
0
        protected LegacySkin(SkinInfo skin, IResourceStore <byte[]> storage, AudioManager audioManager, string filename)
            : base(skin)
        {
            Stream stream = storage.GetStream(filename);

            if (stream != null)
            {
                using (StreamReader reader = new StreamReader(stream))
                    Configuration = new LegacySkinDecoder().Decode(reader);
            }
            else
            {
                Configuration = new DefaultSkinConfiguration();
            }

            Samples  = audioManager.GetSampleStore(storage);
            Textures = new TextureStore(new TextureLoaderStore(storage));
        }
Ejemplo n.º 2
0
 public DefaultSkin()
     : base(SkinInfo.Default)
 {
     Configuration = new DefaultSkinConfiguration();
 }
Ejemplo n.º 3
0
 public DefaultSkin(SkinInfo skin, IStorageResourceProvider resources)
     : base(skin, resources)
 {
     this.resources = resources;
     Configuration  = new DefaultSkinConfiguration();
 }