A game framework written with osu! in mind.
at master 21 lines 577 B view raw
1// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. 2// See the LICENCE file in the repository root for full licence text. 3 4using osu.Framework.Allocation; 5 6namespace osu.Framework.Testing.Dependencies 7{ 8 /// <summary> 9 /// This is used for internal <see cref="DependencyContainer"/> testing purposes. 10 /// </summary> 11 internal class CachedStructProvider 12 { 13 [Cached] 14 public Struct CachedObject { get; } = new Struct { Value = 10 }; 15 16 public struct Struct 17 { 18 public int Value; 19 } 20 } 21}