Implemented quad tree, added test project.
This commit is contained in:
12
Game/Assets/Scripts/Model/IPositionable.cs
Normal file
12
Game/Assets/Scripts/Model/IPositionable.cs
Normal file
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace TransportGame.Model
|
||||
{
|
||||
public interface IPositionable
|
||||
{
|
||||
Vector2 Position { get; }
|
||||
}
|
||||
}
|
12
Game/Assets/Scripts/Model/IPositionable.cs.meta
Normal file
12
Game/Assets/Scripts/Model/IPositionable.cs.meta
Normal file
@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cdecfb69b7ca68446910d0a607e934e6
|
||||
timeCreated: 1432824088
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,23 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace TransportGame.Model
|
||||
{
|
||||
public class Point
|
||||
{
|
||||
public int X { get; set; }
|
||||
public int Y { get; set; }
|
||||
|
||||
public Point()
|
||||
{
|
||||
}
|
||||
|
||||
public Point(int x, int y)
|
||||
{
|
||||
X = x;
|
||||
Y = y;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user