public CenterMap ( uint regionX, uint regionY, uint localX, uint localY, bool setTarget ) : void | ||
regionX | uint | |
regionY | uint | |
localX | uint | |
localY | uint | |
setTarget | bool | |
return | void |
public void CenterOnGlobalPos(float gx, float gy, float z) { txtRegion.Text = string.Empty; nudX.Value = (int)gx % 256; nudY.Value = (int)gy % 256; nudZ.Value = (int)z; uint rx = (uint)(gx / 256); uint ry = (uint)(gy / 256); ulong hndle = Utils.UIntsToLong(rx * 256, ry * 256); targetRegionHandle = hndle; foreach (KeyValuePair <string, ulong> kvp in regionHandles) { if (kvp.Value == hndle) { txtRegion.Text = kvp.Key; btnTeleport.Enabled = true; } } mmap.CenterMap(rx, ry, (uint)gx % 256, (uint)gy % 256, true); }