public PROJECT_SAFE_NAMEWorld(
            INode worldNode,
            IHierarchy hierarchy,
            IPlatforming platforming,
            I2DRenderUtilities renderUtilities,
            IAssetManagerProvider assetManagerProvider,
            IAudioUtilities audioUtilities,
            IProfiler profiler,
            ILevelManager levelManager)
        {
            this.m_RenderUtilities = renderUtilities;
            this.m_Profiler = profiler;
            this.m_LevelManager = levelManager;
            this.m_AssetManager = assetManagerProvider.GetAssetManager(false);
            this.Entities = new List<IEntity>();

            this.m_LevelManager.Load(this, "level.Level0");
        }
Esempio n. 2
0
 public Player(
     IPlatforming platforming,
     IAssetManager assetManager,
     I2DRenderUtilities renderUtilities,
     IAudioUtilities audioUtilities)
 {
     this.m_Platforming = platforming;
     this.m_AssetManager = assetManager;
     this.m_RenderUtilities = renderUtilities;
     this.m_AudioUtilities = audioUtilities;
     
     this.m_Texture = this.m_AssetManager.Get<TextureAsset>("texture.Player");
     this.m_JumpSound = this.m_AssetManager.Get<AudioAsset>("audio.Jump");
     
     this.m_JumpHandle = this.m_AudioUtilities.Play(this.m_JumpSound);
     
     this.Width = 32;
     this.Height = 32;
 }
 public ExampleWorld(
     IPlatforming platforming,
     I2DRenderUtilities renderUtilities,
     IAssetManagerProvider assetManagerProvider,
     IAudioUtilities audioUtilities,
     IProfiler profiler,
     ILevelManager levelManager)
 {
     this.m_RenderUtilities = renderUtilities;
     this.m_Profiler = profiler;
     this.m_LevelManager = levelManager;
     this.m_AssetManager = assetManagerProvider.GetAssetManager(false);
     this.Entities = new List<IEntity>();
     
     this.Entities.Add(new Player(
         platforming,
         this.m_AssetManager,
         this.m_RenderUtilities,
         audioUtilities) { X = 400 });
         
     this.m_LevelManager.Load(this, "level.Level0");
 }