public static int GetHeight(int ZoneID, int PinX, int PinY) { HeighMapInfo Info; if (!Heights.TryGetValue(ZoneID, out Info)) { FrameWork.Log.Success("HeightMap", "["+ZoneID+"] Loading Height Map.."); Info = new HeighMapInfo(ZoneID); Heights.Add(ZoneID, Info); } return Info.GetHeight(PinX, PinY) / 2; }
static public int GetHeight(int ZoneID, int PinX, int PinY) { HeighMapInfo Info; if (!Heights.TryGetValue(ZoneID, out Info)) { FrameWork.Log.Success("HeightMap", "[" + ZoneID + "] Loading Height Map.."); Info = new HeighMapInfo(ZoneID); Heights.Add(ZoneID, Info); } return(Info.GetHeight(PinX, PinY)); }