/// <summary> /// Initializes a new instance of the <see cref="InGameLogSystem"/> class. /// </summary> /// <param name="bounds">The bounds.</param> /// <param name="context">The context.</param> public InGameLogSystem(Rectangle bounds, IWorldContext context) : base(context) { this._bounds = bounds; Context = context; Enabled = true; Tag = "InGameLogSystem"; context.AddComponent(this); }
/// <summary> /// Initializes a new instance of the <see cref="T:Doog.ComponentBase"/> class. /// </summary> /// <param name="context">The world context.</param> /// <param name="addToContext">If set to <c>true</c> the component will be added to context.</param> protected ComponentBase(IWorldContext context, bool addToContext) { Context = context; _enabled = true; Tag = GetType().Name; _children = new List <IComponent>(); if (addToContext) { context.AddComponent(this); } }