diff options
author | Marck | 2010-07-31 20:16:39 +0200 |
---|---|---|
committer | Diva Canto | 2010-07-31 16:38:23 -0700 |
commit | f91ec192247d64786b3eeab66512fdf319273d68 (patch) | |
tree | c3c282e0ddb559ad31be461addca925111104bbc /OpenSim/Services/GridService/HypergridLinker.cs | |
parent | Merge branch 'master' of ssh://diva@opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC-f91ec192247d64786b3eeab66512fdf319273d68.zip opensim-SC-f91ec192247d64786b3eeab66512fdf319273d68.tar.gz opensim-SC-f91ec192247d64786b3eeab66512fdf319273d68.tar.bz2 opensim-SC-f91ec192247d64786b3eeab66512fdf319273d68.tar.xz |
Implemented console command "show hyperlinks".
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Services/GridService/HypergridLinker.cs | 49 |
1 files changed, 24 insertions, 25 deletions
diff --git a/OpenSim/Services/GridService/HypergridLinker.cs b/OpenSim/Services/GridService/HypergridLinker.cs index ae80a8c..23f0004 100644 --- a/OpenSim/Services/GridService/HypergridLinker.cs +++ b/OpenSim/Services/GridService/HypergridLinker.cs | |||
@@ -378,32 +378,31 @@ namespace OpenSim.Services.GridService | |||
378 | 378 | ||
379 | public void HandleShow(string module, string[] cmd) | 379 | public void HandleShow(string module, string[] cmd) |
380 | { | 380 | { |
381 | MainConsole.Instance.Output("Not Implemented Yet"); | 381 | if (cmd.Length != 2) |
382 | //if (cmd.Length != 2) | 382 | { |
383 | //{ | 383 | MainConsole.Instance.Output("Syntax: show hyperlinks"); |
384 | // MainConsole.Instance.Output("Syntax: show hyperlinks"); | 384 | return; |
385 | // return; | 385 | } |
386 | //} | 386 | List<RegionData> regions = m_Database.GetHyperlinks(UUID.Zero); |
387 | //List<GridRegion> regions = new List<GridRegion>(m_HypergridService.m_HyperlinkRegions.Values); | 387 | if (regions == null || regions.Count < 1) |
388 | //if (regions == null || regions.Count < 1) | 388 | { |
389 | //{ | 389 | MainConsole.Instance.Output("No hyperlinks"); |
390 | // MainConsole.Instance.Output("No hyperlinks"); | 390 | return; |
391 | // return; | 391 | } |
392 | //} | 392 | |
393 | 393 | MainConsole.Instance.Output("Region Name Region UUID"); | |
394 | //MainConsole.Instance.Output("Region Name Region UUID"); | 394 | MainConsole.Instance.Output("Location URI"); |
395 | //MainConsole.Instance.Output("Location URI"); | 395 | MainConsole.Instance.Output("-------------------------------------------------------------------------------"); |
396 | //MainConsole.Instance.Output("Owner ID "); | 396 | foreach (RegionData r in regions) |
397 | //MainConsole.Instance.Output("-------------------------------------------------------------------------------"); | 397 | { |
398 | //foreach (GridRegion r in regions) | 398 | MainConsole.Instance.Output(String.Format("{0,-39} {1}\n{2,-39} {3}\n", |
399 | //{ | 399 | r.RegionName, r.RegionID, |
400 | // MainConsole.Instance.Output(String.Format("{0,-20} {1}\n{2,-20} {3}\n{4,-39} \n\n", | 400 | String.Format("{0},{1} ({2},{3})", r.posX, r.posY, r.posX / 256, r.posY / 256), |
401 | // r.RegionName, r.RegionID, | 401 | "http://" + r.Data["serverIP"].ToString() + ":" + r.Data["serverHttpPort"].ToString())); |
402 | // String.Format("{0},{1}", r.RegionLocX, r.RegionLocY), "http://" + r.ExternalHostName + ":" + r.HttpPort.ToString(), | 402 | } |
403 | // r.EstateOwner.ToString())); | 403 | return; |
404 | //} | ||
405 | //return; | ||
406 | } | 404 | } |
405 | |||
407 | public void RunCommand(string module, string[] cmdparams) | 406 | public void RunCommand(string module, string[] cmdparams) |
408 | { | 407 | { |
409 | List<string> args = new List<string>(cmdparams); | 408 | List<string> args = new List<string>(cmdparams); |