Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace Platformer.Core
- {
- public static partial class Simulation
- {
- /// <summary>
- /// This class provides a container for creating singletons for any other class,
- /// within the scope of the Simulation. It is typically used to hold the simulation
- /// models and configuration classes.
- /// </summary>
- /// <typeparam name="T"></typeparam>
- static class InstanceRegister<T> where T : class, new()
- {
- public static T instance = new T();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement