Adding new extensions
This commit is contained in:
parent
e8698d7c6e
commit
1b5f1bfaf9
@ -171,9 +171,9 @@
|
||||
<Compile Include="Engine\Extensions\Contact.cs" />
|
||||
<Compile Include="Engine\Extensions\Double.cs" />
|
||||
<Compile Include="Engine\Extensions\InputState.cs" />
|
||||
<Compile Include="Engine\Extensions\MouseState.cs" />
|
||||
<Compile Include="Engine\Extensions\String.cs" />
|
||||
<Compile Include="Engine\Extensions\Texture2D.cs" />
|
||||
<Compile Include="Engine\Factories\Texture2D.cs" />
|
||||
<Compile Include="Engine\File\AxiosFile.cs" />
|
||||
<Compile Include="Engine\File\AxiosIsolatedFile.cs" />
|
||||
<Compile Include="Engine\File\AxiosRegularFile.cs" />
|
||||
|
@ -214,9 +214,9 @@
|
||||
<Compile Include="Engine\Extensions\Contact.cs" />
|
||||
<Compile Include="Engine\Extensions\InputState.cs" />
|
||||
<Compile Include="Engine\Extensions\Double.cs" />
|
||||
<Compile Include="Engine\Extensions\MouseState.cs" />
|
||||
<Compile Include="Engine\Extensions\String.cs" />
|
||||
<Compile Include="Engine\Extensions\Texture2D.cs" />
|
||||
<Compile Include="Engine\Factories\Texture2D.cs" />
|
||||
<Compile Include="Engine\File\AxiosFile.cs" />
|
||||
<Compile Include="Engine\File\AxiosIsolatedFile.cs" />
|
||||
<Compile Include="Engine\File\AxiosRegularFile.cs" />
|
||||
|
@ -164,9 +164,9 @@
|
||||
<Compile Include="Engine\Extensions\Contact.cs" />
|
||||
<Compile Include="Engine\Extensions\Double.cs" />
|
||||
<Compile Include="Engine\Extensions\InputState.cs" />
|
||||
<Compile Include="Engine\Extensions\MouseState.cs" />
|
||||
<Compile Include="Engine\Extensions\String.cs" />
|
||||
<Compile Include="Engine\Extensions\Texture2D.cs" />
|
||||
<Compile Include="Engine\Factories\Texture2D.cs" />
|
||||
<Compile Include="Engine\File\AxiosFile.cs" />
|
||||
<Compile Include="Engine\File\AxiosIsolatedFile.cs" />
|
||||
<Compile Include="Engine\File\AxiosRegularFile.cs" />
|
||||
|
@ -116,6 +116,7 @@
|
||||
* - 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 visible flag to DrawableAxiosGameObject and SimpleDrawableAxiosGameObject
|
||||
* - Adding extension to mousestate (Position) to get a Vector2 object of the position
|
||||
*
|
||||
*/
|
||||
#endregion
|
||||
|
11
axios/Engine/Extensions/Camera.cs
Normal file
11
axios/Engine/Extensions/Camera.cs
Normal 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
|
||||
{
|
||||
}
|
||||
}
|
18
axios/Engine/Extensions/MouseState.cs
Normal file
18
axios/Engine/Extensions/MouseState.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user