Worked on issue #993: Partly solved. DrawOrder is still open...

This commit is contained in:
Glatzemann 2012-09-28 08:07:48 +00:00 committed by Konstantin Koch
parent 431fc9d8c1
commit 694b1a6810
3 changed files with 21 additions and 4 deletions

View File

@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.0.1.*")]
[assembly: AssemblyFileVersion("1.0.1.0")]

View File

@ -35,7 +35,7 @@ namespace ANX.Framework
base.Clear();
}
protected override void InsertItem(int index, IGameComponent item)
protected new void InsertItem(int index, IGameComponent item)
{
if (item == null)
throw new ArgumentNullException("item");
@ -44,7 +44,7 @@ namespace ANX.Framework
OnComponentAdded(item);
}
protected override void RemoveItem(int index)
protected new void RemoveItem(int index)
{
IGameComponent component = base[index];
base.Remove(component);

View File

@ -13,6 +13,21 @@ using ANX.Framework.Input;
namespace WindowsGame1
{
public class GameComponentTest : GameComponent
{
public GameComponentTest(Game game)
: base(game)
{
}
public override void Update(GameTime gameTime)
{
//System.Diagnostics.Debugger.Break();
base.Update(gameTime);
}
}
/// <summary>
/// This is the main type for your game
/// </summary>
@ -57,6 +72,8 @@ namespace WindowsGame1
protected override void Initialize()
{
base.Initialize();
Components.Add(new GameComponentTest(this));
}
/// <summary>