AOS Fog of War
Loading...
Searching...
No Matches
FischlWorks_FogWar.csFogWar.LevelColumn Class Reference

Public Types

enum  ETileState { Empty , Obstacle }
 

Public Member Functions

 LevelColumn (IEnumerable< ETileState > stateTiles)
 

Properties

ETileState this[int index] [get, set]
 

Member Enumeration Documentation

◆ ETileState

Constructor & Destructor Documentation

◆ LevelColumn()

FischlWorks_FogWar.csFogWar.LevelColumn.LevelColumn ( IEnumerable< ETileState stateTiles)
inline
94 {
95 levelColumn = new List<ETileState>(stateTiles);
96 }

Property Documentation

◆ this[int index]

ETileState FischlWorks_FogWar.csFogWar.LevelColumn.this[int index]
getset
106 {
107 get {
108 if (index >= 0 && index < levelColumn.Count)
109 {
110 return levelColumn[index];
111 }
112 else
113 {
114 Debug.LogErrorFormat("index given in y axis is out of range");
115
116 return ETileState.Empty;
117 }
118 }
119 set {
120 if (index >= 0 && index < levelColumn.Count)
121 {
122 levelColumn[index] = value;
123 }
124 else
125 {
126 Debug.LogErrorFormat("index given in y axis is out of range");
127
128 return;
129 }
130 }
131 }
ETileState
Definition: csFogWar.cs:100

The documentation for this class was generated from the following file: