Author: alanmc
Date: 2007-01-06 08:41:41 -0500 (Sat, 06 Jan 2007)
New Revision: 70568

Modified:
   trunk/Mono.Xna/src/Microsoft.Xna.Framework.Game/DrawableGameComponent.cs
   trunk/Mono.Xna/src/Microsoft.Xna.Framework.Game/GameComponent.cs
Log:
Fixed compiling error and finished bringing DrawableGameComponent up to specs

Modified: 
trunk/Mono.Xna/src/Microsoft.Xna.Framework.Game/DrawableGameComponent.cs
===================================================================
--- trunk/Mono.Xna/src/Microsoft.Xna.Framework.Game/DrawableGameComponent.cs    
2007-01-06 11:50:38 UTC (rev 70567)
+++ trunk/Mono.Xna/src/Microsoft.Xna.Framework.Game/DrawableGameComponent.cs    
2007-01-06 13:41:41 UTC (rev 70568)
@@ -41,15 +41,6 @@
                }
 
                #endregion Public Constructors
-               
-               #region Public Destructors
-               
-               public ~DrawableGameComponent()
-               {
-                       throw new NotImplementedException();
-               }
-               
-               #endregion Public Destructors
 
                #region Private Fields
                
@@ -94,9 +85,17 @@
                #endregion Protected Properties
                
                #region Public Methods
+
+        public override void Initialize()
+        {
+            throw new NotImplementedException();
+        }
+        
+        public virtual void Draw(GameTime gameTime)
+        {
+            throw new NotImplementedException();
+        }
                
-               
-               
                #endregion Public Methods
                
                #region Protected Methods
@@ -106,18 +105,21 @@
                        throw new NotImplementedException();
                }
                
-               #endregion Protected Methods
-       }
-}
-
-lize(){ throw new NotImplementedException(); }
-        
         protected virtual void LoadGraphicsContent(bool loadAllContent){ throw 
new NotImplementedException(); }
         
         protected virtual void OnDrawOrderChanged(object sender, EventArgs 
args){ throw new NotImplementedException(); }
-        
+
         protected virtual void OnVisibleChanged(object sender, EventArgs 
args){ throw new NotImplementedException(); }
         
         protected virtual void UnloadGraphicsContent(bool unloadAllContent){ 
throw new NotImplementedException(); }
+               #endregion Protected Methods
+
+        #region Public Events
+
+        public event EventHandler DrawOrderChanged;
+
+        public event EventHandler VisibleChanged;
+
+        #endregion Public Events
     }
 }

Modified: trunk/Mono.Xna/src/Microsoft.Xna.Framework.Game/GameComponent.cs
===================================================================
--- trunk/Mono.Xna/src/Microsoft.Xna.Framework.Game/GameComponent.cs    
2007-01-06 11:50:38 UTC (rev 70567)
+++ trunk/Mono.Xna/src/Microsoft.Xna.Framework.Game/GameComponent.cs    
2007-01-06 13:41:41 UTC (rev 70568)
@@ -34,7 +34,7 @@
 {
     /// <summary>Base class for all XNA game components.</summary>
     [ToolboxItemFilter("Microsoft.Xna.Framework", 
ToolboxItemFilterType.Require), DesignerCategory("Component"), 
Designer("Microsoft.Xna.Framework.Design.GameComponentRootDesigner, 
Microsoft.Xna.Framework.Design, Version=1.0.0.0, Culture=neutral, 
PublicKeyToken=f48fa5f25d27e8ff", "System.ComponentModel.Design.IRootDesigner, 
System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"), 
Designer("Microsoft.Xna.Framework.Design.GameComponentDesigner, 
Microsoft.Xna.Framework.Design, Version=1.0.0.0, Culture=neutral, 
PublicKeyToken=f48fa5f25d27e8ff", "System.ComponentModel.Design.IDesigner, 
System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
-    public class GameComponent : IComponent, IDisposable
+    public class GameComponent : IGameComponent, IUpdateable, IDisposable
     {
 
         /// <summary>Initializes a new instance of this class.</summary>
@@ -60,7 +60,7 @@
             {
                 if (this.Game != null)
                 {
-                  //  this.Game.GameComponents.Remove(this);
+                    //  this.Game.GameComponents.Remove(this);
                 }
                 if (this.Disposed != null)
                 {
@@ -141,7 +141,30 @@
         public event EventHandler Disposed;
         private Game m_Game;
         private ISite m_Site;
+
+
+        public virtual void Initialize()
+        {
+            throw new Exception("The method or operation is not implemented.");
+        }
+
+        public bool Enabled
+        {
+            get { throw new Exception("The method or operation is not 
implemented."); }
+        }
+
+        public int UpdateOrder
+        {
+            get { throw new Exception("The method or operation is not 
implemented."); }
+        }
+
+        public void Update(GameTime gameTime)
+        {
+            throw new Exception("The method or operation is not implemented.");
+        }
+
+        public event EventHandler EnabledChanged;
+
+        public event EventHandler UpdateOrderChanged;
     }
- 
-
 }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to