Ejemplo n.º 1
0
        public TestSceneTauPlayfield()
        {
            TauBeatmap beatmap;

            AddStep("set beatmap", () =>
            {
                Beatmap.Value = CreateWorkingBeatmap(beatmap = new TauBeatmap());
                beatmap.ControlPointInfo.Add(0, new TimingControlPoint {
                    BeatLength = 1000
                });
                Beatmap.Value.Track.Start();
            });

            AddStep("Load playfield", () => SetContents(_ => new TauPlayfield(Beatmap.Value.BeatmapInfo.Difficulty)
            {
                Anchor           = Anchor.Centre,
                Origin           = Anchor.Centre,
                RelativeSizeAxes = Axes.Both,
                Size             = new Vector2(0.6f),
                FillAspectRatio  = 1,
                FillMode         = FillMode.Fit
            }));

            DllResourceStore dllResourceStore = new DllResourceStore(DynamicCompilationOriginal.GetType().Assembly);

            foreach (var resource in dllResourceStore.GetAvailableResources())
            {
                Console.WriteLine(resource);
            }
        }
Ejemplo n.º 2
0
        private void load(AudioManager audio, SkinManager skinManager, OsuGameBase game)
        {
            var dllStore = new DllResourceStore(DynamicCompilationOriginal.GetType().Assembly);

            metricsSkin = new TestLegacySkin(new SkinInfo {
                Name = "metrics-skin"
            }, new NamespacedResourceStore <byte[]>(dllStore, "Resources/metrics_skin"), audio, true);
            defaultSkin = new DefaultLegacySkin(new NamespacedResourceStore <byte[]>(game.Resources, "Skins/Legacy"), audio);
            specialSkin = new TestLegacySkin(new SkinInfo {
                Name = "special-skin"
            }, new NamespacedResourceStore <byte[]>(dllStore, "Resources/special_skin"), audio, true);
            oldSkin = new TestLegacySkin(new SkinInfo {
                Name = "old-skin"
            }, new NamespacedResourceStore <byte[]>(dllStore, "Resources/old_skin"), audio, true);
        }
Ejemplo n.º 3
0
        private void load()
        {
            var dllStore = new DllResourceStore(DynamicCompilationOriginal.GetType().Assembly);

            metricsSkin = new TestLegacySkin(new SkinInfo {
                Name = "metrics-skin"
            }, new NamespacedResourceStore <byte[]>(dllStore, "Resources/metrics_skin"), this, true);
            defaultSkin = new DefaultLegacySkin(this);
            specialSkin = new TestLegacySkin(new SkinInfo {
                Name = "special-skin"
            }, new NamespacedResourceStore <byte[]>(dllStore, "Resources/special_skin"), this, true);
            oldSkin = new TestLegacySkin(new SkinInfo {
                Name = "old-skin"
            }, new NamespacedResourceStore <byte[]>(dllStore, "Resources/old_skin"), this, true);
        }