private Init ( TileType tileType, int width, int height ) : void | ||
tileType | TileType | |
width | int | |
height | int | |
return | void |
private void Init(TileType tileType, int width, int height)
{
this.TileType = tileType;
this.MaxEdges = Helpers.GetMaxEdges(tileType);
this.Height = height;
this.Width = width;
this.Graph = GraphFactory.CreateGraph(width, height, this.Passability);
}