Exemple #1
0
 public Levels(ILevelReader levelReader, ILevelBinder levelBinder, ILevelValidator levelValidator, ILevelSaver levelSaver, IFileReader fileReader)
 {
     this.LevelReader    = levelReader;
     this.LevelBinder    = levelBinder;
     this.LevelValidator = levelValidator;
     this.LevelSaver     = levelSaver;
     this.FileReader     = fileReader;
 }
        public LevelManager(ContentManager content, IBlockDefinitionBuilder blockDefinitionBuilder, ILevelReader levelReader, IPropertiesReader propertiesReader, IBackground background, LevelName levelName = LevelName.Level2)
        {
            LevelManager.content = content;
            LevelManager.blockDefinitionBuilder = blockDefinitionBuilder;
            LevelManager.levelReader            = levelReader;
            LevelManager.propertiesReader       = propertiesReader;
            LevelManager.background             = background;



            SetLevel(levelName);

            InitializeContent();
        }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultLevelManager"/> class.
 /// </summary>
 /// <param name="kernel">
 /// The dependency injection kernel.
 /// </param>
 /// <param name="reader">
 /// The reader.
 /// </param>
 /// <param name="assetManagerProvider">
 /// The asset manager provider.
 /// </param>
 public DefaultLevelManager(IKernel kernel, ILevelReader reader, IAssetManagerProvider assetManagerProvider)
 {
     _kernel             = kernel;
     this.m_Reader       = reader;
     this.m_AssetManager = assetManagerProvider.GetAssetManager();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultLevelManager"/> class.
 /// </summary>
 /// <param name="reader">
 /// The reader.
 /// </param>
 /// <param name="assetManagerProvider">
 /// The asset manager provider.
 /// </param>
 public DefaultLevelManager(ILevelReader reader, IAssetManagerProvider assetManagerProvider)
 {
     this.m_Reader       = reader;
     this.m_AssetManager = assetManagerProvider.GetAssetManager();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultLevelManager"/> class.
 /// </summary>
 /// <param name="reader">
 /// The reader.
 /// </param>
 /// <param name="assetManagerProvider">
 /// The asset manager provider.
 /// </param>
 public DefaultLevelManager(ILevelReader reader, IAssetManagerProvider assetManagerProvider)
 {
     this.m_Reader = reader;
     this.m_AssetManager = assetManagerProvider.GetAssetManager();
 }