Skip to content

Commit 8412625

Browse files
committed
Added pathfinding - hardcoded destination for now
Added random map generation script Began seperating handler logic inter service classes (map & navigation) Added size property to tile to enable quadtrees in future refactored registration module
1 parent d5feaf2 commit 8412625

25 files changed

+4617
-64
lines changed

Common/Tile.cs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ namespace Common
55
public class Tile
66
{
77
public int Id { get; set; }
8+
public int Size { get; set; }
89
public Vector2 Location { get; set; }
910
public string TextureId { get; set; }
1011
public TerrainType Type { get; set; }

MapEngine/Commands/MoveCommand.cs

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using Common.Entities;
2+
using MapEngine.Handlers;
3+
using System.Numerics;
4+
5+
namespace MapEngine.Commands
6+
{
7+
public class MoveCommand : ICommand
8+
{
9+
public Entity Entity { get; set; }
10+
public bool Queue { get; set; }
11+
public Vector2 Destination { get; set; }
12+
public MovementMode MovementMode { get; set; }
13+
}
14+
}

0 commit comments

Comments
 (0)