Adding new extensions

This commit is contained in:
Nathan Adams 2013-01-02 17:08:15 -06:00
parent e8698d7c6e
commit 1b5f1bfaf9
6 changed files with 33 additions and 3 deletions

View File

@ -171,9 +171,9 @@
<Compile Include="Engine\Extensions\Contact.cs" /> <Compile Include="Engine\Extensions\Contact.cs" />
<Compile Include="Engine\Extensions\Double.cs" /> <Compile Include="Engine\Extensions\Double.cs" />
<Compile Include="Engine\Extensions\InputState.cs" /> <Compile Include="Engine\Extensions\InputState.cs" />
<Compile Include="Engine\Extensions\MouseState.cs" />
<Compile Include="Engine\Extensions\String.cs" /> <Compile Include="Engine\Extensions\String.cs" />
<Compile Include="Engine\Extensions\Texture2D.cs" /> <Compile Include="Engine\Extensions\Texture2D.cs" />
<Compile Include="Engine\Factories\Texture2D.cs" />
<Compile Include="Engine\File\AxiosFile.cs" /> <Compile Include="Engine\File\AxiosFile.cs" />
<Compile Include="Engine\File\AxiosIsolatedFile.cs" /> <Compile Include="Engine\File\AxiosIsolatedFile.cs" />
<Compile Include="Engine\File\AxiosRegularFile.cs" /> <Compile Include="Engine\File\AxiosRegularFile.cs" />

View File

@ -214,9 +214,9 @@
<Compile Include="Engine\Extensions\Contact.cs" /> <Compile Include="Engine\Extensions\Contact.cs" />
<Compile Include="Engine\Extensions\InputState.cs" /> <Compile Include="Engine\Extensions\InputState.cs" />
<Compile Include="Engine\Extensions\Double.cs" /> <Compile Include="Engine\Extensions\Double.cs" />
<Compile Include="Engine\Extensions\MouseState.cs" />
<Compile Include="Engine\Extensions\String.cs" /> <Compile Include="Engine\Extensions\String.cs" />
<Compile Include="Engine\Extensions\Texture2D.cs" /> <Compile Include="Engine\Extensions\Texture2D.cs" />
<Compile Include="Engine\Factories\Texture2D.cs" />
<Compile Include="Engine\File\AxiosFile.cs" /> <Compile Include="Engine\File\AxiosFile.cs" />
<Compile Include="Engine\File\AxiosIsolatedFile.cs" /> <Compile Include="Engine\File\AxiosIsolatedFile.cs" />
<Compile Include="Engine\File\AxiosRegularFile.cs" /> <Compile Include="Engine\File\AxiosRegularFile.cs" />

View File

@ -164,9 +164,9 @@
<Compile Include="Engine\Extensions\Contact.cs" /> <Compile Include="Engine\Extensions\Contact.cs" />
<Compile Include="Engine\Extensions\Double.cs" /> <Compile Include="Engine\Extensions\Double.cs" />
<Compile Include="Engine\Extensions\InputState.cs" /> <Compile Include="Engine\Extensions\InputState.cs" />
<Compile Include="Engine\Extensions\MouseState.cs" />
<Compile Include="Engine\Extensions\String.cs" /> <Compile Include="Engine\Extensions\String.cs" />
<Compile Include="Engine\Extensions\Texture2D.cs" /> <Compile Include="Engine\Extensions\Texture2D.cs" />
<Compile Include="Engine\Factories\Texture2D.cs" />
<Compile Include="Engine\File\AxiosFile.cs" /> <Compile Include="Engine\File\AxiosFile.cs" />
<Compile Include="Engine\File\AxiosIsolatedFile.cs" /> <Compile Include="Engine\File\AxiosIsolatedFile.cs" />
<Compile Include="Engine\File\AxiosRegularFile.cs" /> <Compile Include="Engine\File\AxiosRegularFile.cs" />

View File

@ -116,6 +116,7 @@
* - Adding Factory for Texture2D to create from a list (ie lay a list of texture2D row by row) * - Adding Factory for Texture2D to create from a list (ie lay a list of texture2D row by row)
* - Adding AddScreen method to ScreenManager to make the PlayerIndex optional (default of PlayerIndex.One) * - Adding AddScreen method to ScreenManager to make the PlayerIndex optional (default of PlayerIndex.One)
* - Adding visible flag to DrawableAxiosGameObject and SimpleDrawableAxiosGameObject * - Adding visible flag to DrawableAxiosGameObject and SimpleDrawableAxiosGameObject
* - Adding extension to mousestate (Position) to get a Vector2 object of the position
* *
*/ */
#endregion #endregion

View File

@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Axios.Engine.Extensions
{
public static class Camera
{
}
}

View File

@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
using GameStateManagement;
namespace Axios.Engine.Extensions
{
public static class MoustStateExtensions
{
public static Vector2 Position(this MouseState input)
{
return new Vector2(input.X, input.Y);
}
}
}