예제 #1
0
        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;
        }
예제 #2
0
        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));
        }