コード例 #1
0
 /// <summary>
 /// Removes a <see cref="ScreenDrawableComponent"/> derived object to the render pool.
 /// </summary>
 /// <param name="component">The component object to remove.</param>
 /// <returns><c>true</c> if removed, otherwise <c>false</c></returns>
 internal bool RemoveScreenDrawableComponent(ScreenDrawableComponent component)
 {
     return(this.screenDrawableComponents.Remove(component));
 }
コード例 #2
0
 /// <summary>
 /// Adds a <see cref="ScreenDrawableComponent"/> derived object to the render pool.
 /// </summary>
 /// <param name="component">The component object to add.</param>
 internal void AddScreenDrawableComponent(ScreenDrawableComponent component)
 {
     this.screenDrawableComponents.Add(component, (obj) => obj.LoadContent(this.parentGame.Content), null);
 }