From b3f25ebf7ca7ac83f44d8a09049137e53c3f30ad Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Fri, 18 May 2012 21:29:00 -0500 Subject: [PATCH] Adding log items Adding comments --- axios/Axios_settings.cs | 4 ++++ axios/Engine/AxiosGameScreen.cs | 16 +++++++++++----- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/axios/Axios_settings.cs b/axios/Axios_settings.cs index 7e303ef..63d0b20 100644 --- a/axios/Axios_settings.cs +++ b/axios/Axios_settings.cs @@ -83,6 +83,10 @@ * - Adding an extension to determine what side the objects collided on * - Correcting misspelling of Extensions in String and Texture2D * + * 1.0.1.6 - 5/18/2012 + * - Adding cut extension - [Author: BJD] + * - Adding support for custom handling of Gleed2D items + * */ #endregion diff --git a/axios/Engine/AxiosGameScreen.cs b/axios/Engine/AxiosGameScreen.cs index 29e50c8..e5c5634 100644 --- a/axios/Engine/AxiosGameScreen.cs +++ b/axios/Engine/AxiosGameScreen.cs @@ -146,7 +146,7 @@ namespace Axios.Engine } else { - Singleton.Instance.AddLine("[Axios Engine] - Adding objects too fast...remove " + gameobject.Name + " later", LoggingFlag.DEBUG); + AxiosLog.Instance.AddLine("[Axios Engine] - Adding objects too fast...remove " + gameobject.Name + " later", LoggingFlag.DEBUG); this._objectstoremove.Add(gameobject); } @@ -154,7 +154,7 @@ namespace Axios.Engine public void RemoveAll() { - AxiosLog.Instance.AddLine("Memory usage before cleanup: " + GC.GetTotalMemory(true).ToString(), LoggingFlag.DEBUG); + AxiosLog.Instance.AddLine("[Axios Engine] - Memory usage before cleanup: " + GC.GetTotalMemory(true).ToString(), LoggingFlag.DEBUG); foreach (AxiosGameObject g in _gameObjects) g.UnloadContent(this); foreach (AxiosUIObject ui in _uiobjects) @@ -163,7 +163,7 @@ namespace Axios.Engine this._gameObjects.Clear(); _timers.Clear(); _uiobjects.Clear(); - AxiosLog.Instance.AddLine("Memory usage after cleanup: ", LoggingFlag.DEBUG); + AxiosLog.Instance.AddLine("[Axios Engine] - Memory usage after cleanup: ", LoggingFlag.DEBUG); } public override void Activate(bool instancePreserved) @@ -374,7 +374,7 @@ namespace Axios.Engine public override void Deactivate() { base.Deactivate(); - //AxiosLog.Instance.AddLine("Memory usage before cleanup: " + GC.GetTotalMemory(true).ToString(), LoggingFlag.DEBUG); + AxiosLog.Instance.AddLine("Memory usage before cleanup: " + GC.GetTotalMemory(true).ToString(), LoggingFlag.DEBUG); foreach (AxiosGameObject g in _gameObjects) g.UnloadContent(this); @@ -386,7 +386,7 @@ namespace Axios.Engine this.World.Clear(); _timers.Clear(); _uiobjects.Clear(); - //AxiosLog.Instance.AddLine("Memory usage after cleanup: " + GC.GetTotalMemory(true).ToString(), LoggingFlag.DEBUG); + AxiosLog.Instance.AddLine("Memory usage after cleanup: " + GC.GetTotalMemory(true).ToString(), LoggingFlag.DEBUG); //AxiosRegularFile f = new AxiosRegularFile("log.log"); //f.WriteData(AxiosLog.Instance.GetLog(), FileMode.Append); //AxiosIsolatedFile f = new AxiosIsolatedFile("log.log"); @@ -394,6 +394,12 @@ namespace Axios.Engine //CleanUp(); } + + /// + /// This allows you to customize functionality for loading a circle item. + /// + /// + /// #if WINDOWS // System.Drawing is NOT avaiable on WP7 or Xbox /*