diff options
author | Justin Clark-Casey (justincc) | 2011-11-03 21:16:24 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-11-03 21:16:24 +0000 |
commit | 66c60c56a0bac01e0f4f2a9d5c673a48ff94642b (patch) | |
tree | a76c17cdc4a65b46b1ba308e95d0b37d216fc68e /OpenSim/Tools/pCampBot/pCampBot.cs | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC-66c60c56a0bac01e0f4f2a9d5c673a48ff94642b.zip opensim-SC-66c60c56a0bac01e0f4f2a9d5c673a48ff94642b.tar.gz opensim-SC-66c60c56a0bac01e0f4f2a9d5c673a48ff94642b.tar.bz2 opensim-SC-66c60c56a0bac01e0f4f2a9d5c673a48ff94642b.tar.xz |
Separate out physics testing actions into a separate PhysicsBehaviour class
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Tools/pCampBot/pCampBot.cs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/OpenSim/Tools/pCampBot/pCampBot.cs b/OpenSim/Tools/pCampBot/pCampBot.cs index a69fbf0..cae96e1 100644 --- a/OpenSim/Tools/pCampBot/pCampBot.cs +++ b/OpenSim/Tools/pCampBot/pCampBot.cs | |||
@@ -26,6 +26,8 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Reflection; | ||
30 | using log4net; | ||
29 | using Nini.Config; | 31 | using Nini.Config; |
30 | using OpenSim.Framework; | 32 | using OpenSim.Framework; |
31 | using OpenSim.Framework.Console; | 33 | using OpenSim.Framework.Console; |
@@ -44,6 +46,8 @@ namespace pCampBot | |||
44 | 46 | ||
45 | public class pCampBot | 47 | public class pCampBot |
46 | { | 48 | { |
49 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | ||
50 | |||
47 | [STAThread] | 51 | [STAThread] |
48 | public static void Main(string[] args) | 52 | public static void Main(string[] args) |
49 | { | 53 | { |
@@ -60,9 +64,17 @@ namespace pCampBot | |||
60 | 64 | ||
61 | //startup specified number of bots. 1 is the default | 65 | //startup specified number of bots. 1 is the default |
62 | bm.dobotStartup(botcount, config); | 66 | bm.dobotStartup(botcount, config); |
67 | |||
63 | while (true) | 68 | while (true) |
64 | { | 69 | { |
65 | MainConsole.Instance.Prompt(); | 70 | try |
71 | { | ||
72 | MainConsole.Instance.Prompt(); | ||
73 | } | ||
74 | catch (Exception e) | ||
75 | { | ||
76 | m_log.ErrorFormat("Command error: {0}", e); | ||
77 | } | ||
66 | } | 78 | } |
67 | } | 79 | } |
68 | } | 80 | } |