forked from planetarianPKU/MapEditor_RA2
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathAbstractMapMember.cs
More file actions
34 lines (33 loc) · 1.13 KB
/
AbstractMapMember.cs
File metadata and controls
34 lines (33 loc) · 1.13 KB
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
28
29
30
31
32
33
34
using RandomMapGenerator.TileInfo;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace RandomMapGenerator
{
public class AbstractMapMember
{
public string MapUnitName { get; set; } = "empty";
public bool IsOnMap { get; set; } = false;
public bool Placed { get; set; } = false;
public bool NWConnected { get; set; } = false;
public bool NEConnected { get; set; } = false;
public bool SEConnected { get; set; } = false;
public bool SWConnected { get; set; } = false;
public int Entropy { get; set; } = 50;
public bool IsAllOnVisibleMap { get; set; } = false;
public bool PlayerLocationHasTiberium { get; set; } = false;
public AbstractMapUnit GetAbstractMapUnit()
{
var absMapUnit = new AbstractMapUnit();
foreach (var pAbsMapUnit in WorkingMap.AbstractMapUnitList)
{
if (MapUnitName == pAbsMapUnit.MapUnitName)
{
absMapUnit = pAbsMapUnit;
}
}
return absMapUnit;
}
}
}