public Grid GetGridByType(eGridType gType) { Grid outV = null; allGrids.TryGetValue(gType, out outV); return(outV); }
public void InitGrid(string mapData, eGridType gridType) { GridWithAgent grid = new GridWithAgent(); grid.CreateFromString(mapData); allGrids.Add(gridType, grid); }