axiosengine 

axiosengine Commit Details


Date:2012-05-18 21:29:00 (12 years 4 months ago)
Author:Natalie Adams
Branch:master
Commit:b3f25ebf7ca7ac83f44d8a09049137e53c3f30ad
Parents: c0d3f3b939e1b01c1cce2535217d68f22bda0fd5
Message:Adding log items Adding comments

Changes:

File differences

axios/Axios_settings.cs
8383
8484
8585
86
87
88
89
8690
8791
8892
* - 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
axios/Engine/AxiosGameScreen.cs
146146
147147
148148
149
149
150150
151151
152152
......
154154
155155
156156
157
157
158158
159159
160160
......
163163
164164
165165
166
166
167167
168168
169169
......
374374
375375
376376
377
377
378378
379379
380380
......
386386
387387
388388
389
389
390390
391391
392392
......
394394
395395
396396
397
398
399
400
401
402
397403
398404
399405
}
else
{
Singleton<AxiosLog>.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);
}
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)
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)
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);
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");
//CleanUp();
}
/// <summary>
/// This allows you to customize functionality for loading a circle item.
/// </summary>
/// <param name="circleitem"></param>
/// <returns></returns>
#if WINDOWS
// System.Drawing is NOT avaiable on WP7 or Xbox
/*

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.06881s using 14 queries.