Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class GameFactory : IFactory<IState>
- {
- private readonly DiContainer _container;
- public GameFactory(DiContainer container)
- {
- _container= container;
- }
- public T Create<T>() where T : IState
- {
- return _container.Instantiate<T>();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement