ArkaliaCore.Game.Game.Engines.PathEngine.GetCellYCoord C# (CSharp) Метод

GetCellYCoord() публичный Метод

Get Y location for cell
public GetCellYCoord ( int cellid ) : int
cellid int
Результат int
        public int GetCellYCoord(int cellid)
        {
            int w = this._map.Width;
            int loc5 = (int)(cellid / ((w * 2) - 1));
            int loc6 = cellid - loc5 * ((w * 2) - 1);
            int loc7 = loc6 % w;
            return (loc5 - loc7);
        }