summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/XSuperRiskMapStaticInfo.cs
blob: d96a1ff09143df53ca77da07e4e234b646897d5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System;
using System.Collections.Generic;

namespace XMainClient
{
	internal class XSuperRiskMapStaticInfo
	{
		public int Width { get; set; }

		public int Height { get; set; }

		public List<XSuperRiskMapNode> Nodes = new List<XSuperRiskMapNode>();

		public XSuperRiskMapNode FindMapNode(Coordinate coord)
		{
			for (int i = 0; i < this.Nodes.Count; i++)
			{
				bool flag = this.Nodes[i].coord.Equals(coord);
				if (flag)
				{
					return this.Nodes[i];
				}
			}
			return null;
		}
	}
}