- added Developer-Attribute for tagging classes responsibility

- added a bunch of Completion- and Developer-Tags
This commit is contained in:
Glatzemann 2012-08-29 13:14:00 +00:00
parent 1a429e25d5
commit 1f45cd9038
29 changed files with 115 additions and 14 deletions

View File

@ -414,6 +414,7 @@
<Compile Include="NonXNA\AddInLoadingException.cs" />
<Compile Include="NonXNA\AddInTypeCollection.cs" />
<Compile Include="NonXNA\AddInType.cs" />
<Compile Include="NonXNA\Development\DeveloperAttribute.cs" />
<Compile Include="NonXNA\Development\TestStateAttribute.cs" />
<Compile Include="NonXNA\Development\PercentageCompleteAttribute.cs" />
<Compile Include="NonXNA\EffectSourceLanguage.cs" />

View File

@ -13,6 +13,7 @@ namespace ANX.Framework
{
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Untested)]
[Developer("Glatzemann")]
public class DrawableGameComponent : GameComponent, IDrawable
{
#region Private Members

View File

@ -18,6 +18,7 @@ namespace ANX.Framework
{
[PercentageComplete(30)]
[TestState(TestStateAttribute.TestState.Untested)]
[Developer("Glatzemann")]
public class Game : IDisposable
{
private IGraphicsDeviceManager graphicsDeviceManager;

View File

@ -13,6 +13,7 @@ namespace ANX.Framework
{
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Untested)]
[Developer("Glatzemann")]
public class GameComponent : IGameComponent, IUpdateable, IDisposable
{
private bool enabled = true;

View File

@ -13,6 +13,7 @@ namespace ANX.Framework
{
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Untested)]
[Developer("Glatzemann")]
public sealed class GameComponentCollection : Collection<IGameComponent>
{
#region Events

View File

@ -13,6 +13,7 @@ namespace ANX.Framework
{
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Untested)]
[Developer("Glatzemann")]
public class GameComponentCollectionEventArgs : EventArgs
{
public GameComponentCollectionEventArgs(IGameComponent gameComponent)

View File

@ -1,6 +1,7 @@
#region Using Statements
using System;
using System.Collections.Generic;
using ANX.Framework.NonXNA.Development;
#endregion // Using Statements
@ -10,7 +11,9 @@ using System.Collections.Generic;
namespace ANX.Framework
{
[ANX.Framework.NonXNA.Development.PercentageComplete(100)]
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Untested)]
[Developer("Glatzemann")]
public class GameServiceContainer : IServiceProvider
{
private Dictionary<Type, Object> services;

View File

@ -8,6 +8,8 @@ using ANX.Framework.NonXNA.Development;
namespace ANX.Framework
{
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Untested)]
[Developer("Glatzemann")]
public class GameTime
{
#region Public

View File

@ -19,6 +19,7 @@ namespace ANX.Framework.Graphics
[PercentageComplete(10)]
[TestState(TestStateAttribute.TestState.Untested)]
[Developer("Glatzemann")]
public class ConstantBuffer : GraphicsResource, IGraphicsResource
{
#region Private

View File

@ -1,5 +1,6 @@
#region Using Statements
using System;
using ANX.Framework.NonXNA.Development;
#endregion // Using Statements
@ -9,6 +10,9 @@ using System;
namespace ANX.Framework.Graphics
{
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Tested)]
[Developer("Glatzemann")]
public interface IEffectFog
{
Vector3 FogColor { get; set; }

View File

@ -1,5 +1,6 @@
#region Using Statements
using System;
using ANX.Framework.NonXNA.Development;
#endregion // Using Statements
@ -9,6 +10,9 @@ using System;
namespace ANX.Framework.Graphics
{
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Tested)]
[Developer("Glatzemann")]
public interface IEffectLights
{
void EnableDefaultLighting();

View File

@ -1,5 +1,6 @@
#region Using Statements
using System;
using ANX.Framework.NonXNA.Development;
#endregion // Using Statements
@ -9,6 +10,9 @@ using System;
namespace ANX.Framework.Graphics
{
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Tested)]
[Developer("Glatzemann")]
public interface IEffectMatrices
{
Matrix Projection { get; set; }

View File

@ -4,6 +4,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using ANX.Framework.Graphics;
using ANX.Framework.NonXNA.Development;
#endregion // Using Statements
@ -13,6 +14,9 @@ using ANX.Framework.Graphics;
namespace ANX.Framework.Graphics
{
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Tested)]
[Developer("Glatzemann")]
public interface IGraphicsDeviceService
{
// Events

View File

@ -1,5 +1,6 @@
#region Using Statements
using System;
using ANX.Framework.NonXNA.Development;
#endregion // Using Statements
@ -9,6 +10,9 @@ using System;
namespace ANX.Framework.Graphics
{
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Tested)]
[Developer("Glatzemann")]
internal interface IGraphicsResource
{
}

View File

@ -1,5 +1,6 @@
#region Using Statements
using System;
using ANX.Framework.NonXNA.Development;
#endregion // Using Statements
@ -9,6 +10,9 @@ using System;
namespace ANX.Framework.Graphics
{
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Tested)]
[Developer("Glatzemann")]
public interface IVertexType
{
VertexDeclaration VertexDeclaration { get; }

View File

@ -12,6 +12,7 @@ namespace ANX.Framework.Graphics
{
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Untested)]
[Developer("Glatzemann")]
public class IndexBuffer : GraphicsResource, IGraphicsResource
{
#region Private

View File

@ -2,9 +2,12 @@
// "ANX.Framework developer group" and released under the Ms-PL license.
// For details see: http://anxframework.codeplex.com/license
using ANX.Framework.NonXNA.Development;
namespace ANX.Framework.Graphics.PackedVector
{
[ANX.Framework.NonXNA.Development.PercentageComplete(100)]
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Tested)]
[Developer("Glatzemann")]
public interface IPackedVector
{
void PackFromVector4(Vector4 vector);
@ -12,7 +15,9 @@ namespace ANX.Framework.Graphics.PackedVector
Vector4 ToVector4();
}
[ANX.Framework.NonXNA.Development.PercentageComplete(100)]
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Tested)]
[Developer("Glatzemann")]
public interface IPackedVector<TPacked> : IPackedVector
{
TPacked PackedValue

View File

@ -8,6 +8,8 @@ using ANX.Framework.NonXNA.Development;
namespace ANX.Framework.Graphics
{
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Untested)]
[Developer("Glatzemann")]
public class PresentationParameters
{
#region Public

View File

@ -12,6 +12,7 @@ namespace ANX.Framework.Graphics
{
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Untested)]
[Developer("Glatzemann")]
public class VertexBuffer : GraphicsResource, IGraphicsResource
{
#region Private

View File

@ -8,6 +8,8 @@ using ANX.Framework.NonXNA.Development;
namespace ANX.Framework
{
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Untested)]
[Developer("Glatzemann")]
public class GraphicsDeviceInformation
{
#region Public

View File

@ -1,4 +1,5 @@
using System;
using ANX.Framework.NonXNA.Development;
// This file is part of the ANX.Framework created by the
// "ANX.Framework developer group" and released under the Ms-PL license.
@ -6,7 +7,9 @@ using System;
namespace ANX.Framework
{
[ANX.Framework.NonXNA.Development.PercentageComplete(100)]
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Tested)]
[Developer("Glatzemann")]
public interface IDrawable
{
event EventHandler<EventArgs> DrawOrderChanged;

View File

@ -2,9 +2,12 @@
// "ANX.Framework developer group" and released under the Ms-PL license.
// For details see: http://anxframework.codeplex.com/license
using ANX.Framework.NonXNA.Development;
namespace ANX.Framework
{
[ANX.Framework.NonXNA.Development.PercentageComplete(100)]
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Tested)]
[Developer("Glatzemann")]
public interface IGameComponent
{
void Initialize();

View File

@ -2,9 +2,12 @@
// "ANX.Framework developer group" and released under the Ms-PL license.
// For details see: http://anxframework.codeplex.com/license
using ANX.Framework.NonXNA.Development;
namespace ANX.Framework
{
[ANX.Framework.NonXNA.Development.PercentageComplete(100)]
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Tested)]
[Developer("Glatzemann")]
public interface IGraphicsDeviceManager
{
bool BeginDraw();

View File

@ -1,4 +1,8 @@
#region Using Statements
using System;
using ANX.Framework.NonXNA.Development;
#endregion
// This file is part of the ANX.Framework created by the
// "ANX.Framework developer group" and released under the Ms-PL license.
@ -6,7 +10,10 @@ using System;
namespace ANX.Framework
{
public interface IUpdateable
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Tested)]
[Developer("Glatzemann")]
public interface IUpdateable
{
bool Enabled
{

View File

@ -1,4 +1,5 @@
using System.Collections.Generic;
using ANX.Framework.NonXNA.Development;
// This file is part of the ANX.Framework created by the
// "ANX.Framework developer group" and released under the Ms-PL license.
@ -6,7 +7,9 @@ using System.Collections.Generic;
namespace ANX.Framework
{
[ANX.Framework.NonXNA.Development.PercentageComplete(100)]
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Untested)]
[Developer("???")]
public class LaunchParameters : Dictionary<string, string>
{
}

View File

@ -0,0 +1,30 @@
using System;
// This file is part of the ANX.Framework created by the
// "ANX.Framework developer group" and released under the Ms-PL license.
// For details see: http://anxframework.codeplex.com/license
namespace ANX.Framework.NonXNA.Development
{
public class DeveloperAttribute : Attribute
{
#region Public
public string Developer
{
get;
private set;
}
#endregion
#region Constructor
/// <summary>
/// Create a new developer attribute.
/// </summary>
/// <param name="developer">Developer who is responsible for this class</param>
public DeveloperAttribute(string developer)
{
Developer = developer;
}
#endregion
}
}

View File

@ -1,5 +1,6 @@
using System;
using System.Globalization;
using ANX.Framework.NonXNA.Development;
// This file is part of the ANX.Framework created by the
// "ANX.Framework developer group" and released under the Ms-PL license.
@ -7,8 +8,10 @@ using System.Globalization;
namespace ANX.Framework
{
[ANX.Framework.NonXNA.Development.PercentageComplete(100)]
public struct Point : IEquatable<Point>
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Untested)]
[Developer("???")]
public struct Point : IEquatable<Point>
{
#region Constants
public static Point Zero

View File

@ -1,4 +1,5 @@
using System;
using ANX.Framework.NonXNA.Development;
// This file is part of the ANX.Framework created by the
// "ANX.Framework developer group" and released under the Ms-PL license.
@ -6,7 +7,9 @@ using System;
namespace ANX.Framework
{
[ANX.Framework.NonXNA.Development.PercentageComplete(100)]
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Untested)]
[Developer("???")]
public class PreparingDeviceSettingsEventArgs : EventArgs
{
public GraphicsDeviceInformation GraphicsDeviceInformation
@ -15,8 +18,7 @@ namespace ANX.Framework
private set;
}
public PreparingDeviceSettingsEventArgs(
GraphicsDeviceInformation graphicsDeviceInformation)
public PreparingDeviceSettingsEventArgs(GraphicsDeviceInformation graphicsDeviceInformation)
{
GraphicsDeviceInformation = graphicsDeviceInformation;
}

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<Config>
<ANXAssemblies>
<Assembly>..\..\bin\Debug\ANX.Framework.dll</Assembly>
<Assembly>..\bin\Debug\ANX.Framework.dll</Assembly>
</ANXAssemblies>
<XNAAssemblies>
<Assembly>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.dll</Assembly>