refactoring
This commit is contained in:
parent
5ce6580c6f
commit
c293490995
5 changed files with 8 additions and 10 deletions
|
@ -4,6 +4,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
VisualStudioVersion = 16.0.30626.31
|
VisualStudioVersion = 16.0.30626.31
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sledgemapper", "MyGame\Sledgemapper.csproj", "{3E895B69-EBD7-4FDD-84D0-BEC18FC5D658}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sledgemapper", "MyGame\Sledgemapper.csproj", "{3E895B69-EBD7-4FDD-84D0-BEC18FC5D658}"
|
||||||
|
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
|
|
@ -6,7 +6,7 @@ using Microsoft.Xna.Framework.Content;
|
||||||
using Microsoft.Xna.Framework;
|
using Microsoft.Xna.Framework;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
namespace MyGame
|
namespace Sledgemapper
|
||||||
{
|
{
|
||||||
public static class ExtensionMethods
|
public static class ExtensionMethods
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
namespace MyGame
|
namespace Sledgemapper
|
||||||
{
|
{
|
||||||
public enum InsertMode
|
public enum InsertMode
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace MyGame
|
namespace Sledgemapper
|
||||||
{
|
{
|
||||||
public static class Program
|
public static class Program
|
||||||
{
|
{
|
||||||
[STAThread]
|
[STAThread]
|
||||||
static void Main()
|
static void Main()
|
||||||
{
|
{
|
||||||
using (var game = new Game1())
|
using (var game = new Sledgemapper())
|
||||||
game.Run();
|
game.Run();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,15 +15,12 @@ using System;
|
||||||
using System.Collections.Concurrent;
|
using System.Collections.Concurrent;
|
||||||
using Sledgemapper.Entities;
|
using Sledgemapper.Entities;
|
||||||
|
|
||||||
namespace MyGame
|
namespace Sledgemapper
|
||||||
{
|
{
|
||||||
public class Game1 : Game
|
public class Sledgemapper : Game
|
||||||
{
|
{
|
||||||
private GraphicsDeviceManager _graphics;
|
private GraphicsDeviceManager _graphics;
|
||||||
private SpriteBatch _spriteBatch;
|
private SpriteBatch _spriteBatch;
|
||||||
//private List<Tile> _sessionData.Map = new List<Tile>();
|
|
||||||
//private List<Wall> _sessionData.Walls = new List<Wall>();
|
|
||||||
//private List<Overlay> _sessionData.Overlays = new List<Overlay>();
|
|
||||||
private Tile _selectedTile = new Tile { X = 1, Y = 1 };
|
private Tile _selectedTile = new Tile { X = 1, Y = 1 };
|
||||||
private Tile _hoveredTile = new Tile { X = 1, Y = 1 };
|
private Tile _hoveredTile = new Tile { X = 1, Y = 1 };
|
||||||
private Wall _selectedWall = new Wall { X = 1, Y = 1 };
|
private Wall _selectedWall = new Wall { X = 1, Y = 1 };
|
||||||
|
@ -44,7 +41,7 @@ namespace MyGame
|
||||||
private Dictionary<string, SpriteFont> _fonts;
|
private Dictionary<string, SpriteFont> _fonts;
|
||||||
private SessionData _sessionData;
|
private SessionData _sessionData;
|
||||||
|
|
||||||
public Game1()
|
public Sledgemapper()
|
||||||
{
|
{
|
||||||
_graphics = new GraphicsDeviceManager(this);
|
_graphics = new GraphicsDeviceManager(this);
|
||||||
Content.RootDirectory = "Content";
|
Content.RootDirectory = "Content";
|
Loading…
Add table
Add a link
Reference in a new issue