Beispiel #1
0
 /// <summary>
 /// Removes a <see cref="SpriteBase"/> derived object to the render pool.
 /// </summary>
 /// <param name="spriteObject">The sprite object to remove.</param>
 /// <returns><c>true</c> if removed, otherwise <c>false</c></returns>
 internal bool RemoveSpriteObject(SpriteBase spriteObject)
 {
     return(this.worldSpriteObjects.Remove(spriteObject));
 }
Beispiel #2
0
 /// <summary>
 /// Adds a <see cref="SpriteBase"/> derived object to the render pool.
 /// </summary>
 /// <param name="spriteObject">The sprite object to add.</param>
 internal void AddSpriteObject(SpriteBase spriteObject)
 {
     this.worldSpriteObjects.Add(spriteObject, (obj) => this.LoadDrawableContent(obj), null);
     //this.AddSimObject(spriteObject);
 }