summaryrefslogtreecommitdiff
path: root/marching/Assets/Scripts/Battle/GridMap.cs
diff options
context:
space:
mode:
Diffstat (limited to 'marching/Assets/Scripts/Battle/GridMap.cs')
-rw-r--r--marching/Assets/Scripts/Battle/GridMap.cs47
1 files changed, 0 insertions, 47 deletions
diff --git a/marching/Assets/Scripts/Battle/GridMap.cs b/marching/Assets/Scripts/Battle/GridMap.cs
deleted file mode 100644
index c99bf4a..0000000
--- a/marching/Assets/Scripts/Battle/GridMap.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-/// <summary>
-/// 用Grid托管需要实现这个接口
-/// </summary>
-public interface IGridMapObject
-{
- // 坐标,transform.position
- public Vector2 coordinate { get; }
-}
-
-public class GridCell
-{
- public List<IGridMapObject> m_Object;
-}
-
-/// <summary>
-/// 用网格划分场景,不依赖形状,只依赖位置
-/// </summary>
-public class GridMap
-{
-
- // 单个cell的大小
- private Vector2 m_CellSize;
-
- // 整个grid的范围 x, y, xcount, ycount
- private Vector4 m_Range;
-
- // 左上角开始索引
- private List<GridCell> m_GridCells;
-
- public GridMap()
- {
- m_GridCells = new List<GridCell>();
- }
-
- private int GetGridIndex(Vector2 pos)
- {
-
-
- return -1;
- }
-
-} \ No newline at end of file