Ejemplo n.º 1
0
        protected override sealed void Initialize()
        {
            base.Initialize();

            camera = new Camera(Vector2.One, Vector3.Zero);
            builder.RegisterInstance(camera).AsSelf().SingleInstance();

            RegisterEngineParts(builder);

            container = builder.Build();

            LoadCustomContent(container);

            components = container.Resolve<IEnumerable<IEngineComponent>>();

            Init(container);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// When enabled, draws a realtime visualization of input.
 /// </summary>
 public void Draw(SpriteBatch spriteBatch, Camera camera)
 {
     //@do: add debug drawings
 }