diff options
author | KittoFlora | 2009-11-16 01:40:15 +0100 |
---|---|---|
committer | KittoFlora | 2009-11-16 01:40:15 +0100 |
commit | 873c9098d8627972e80a1688e85a4cda45e1e7fe (patch) | |
tree | a0edc24aef11d5ad6928493d8985386f48dd2607 /OpenSim/TestSuite/PhysicsBot.cs | |
parent | Merge branch 'vehicles' into tests (diff) | |
parent | Merge branch 'master' into careminster (diff) | |
download | opensim-SC-873c9098d8627972e80a1688e85a4cda45e1e7fe.zip opensim-SC-873c9098d8627972e80a1688e85a4cda45e1e7fe.tar.gz opensim-SC-873c9098d8627972e80a1688e85a4cda45e1e7fe.tar.bz2 opensim-SC-873c9098d8627972e80a1688e85a4cda45e1e7fe.tar.xz |
Merge branch 'careminster' into tests
Diffstat (limited to 'OpenSim/TestSuite/PhysicsBot.cs')
-rw-r--r-- | OpenSim/TestSuite/PhysicsBot.cs | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/OpenSim/TestSuite/PhysicsBot.cs b/OpenSim/TestSuite/PhysicsBot.cs index 9c9c1ea..fac4275 100644 --- a/OpenSim/TestSuite/PhysicsBot.cs +++ b/OpenSim/TestSuite/PhysicsBot.cs | |||
@@ -130,9 +130,9 @@ namespace OpenSim.TestSuite | |||
130 | public void startup() | 130 | public void startup() |
131 | { | 131 | { |
132 | client.Settings.LOGIN_SERVER = loginURI; | 132 | client.Settings.LOGIN_SERVER = loginURI; |
133 | client.Network.OnConnected += new NetworkManager.ConnectedCallback(this.Network_OnConnected); | 133 | client.Network.LoginProgress += this.Network_LoginProgress; |
134 | client.Network.OnSimConnected += new NetworkManager.SimConnectedCallback(this.Network_OnConnected); | 134 | client.Network.SimConnected += this.Network_SimConnected; |
135 | client.Network.OnDisconnected += new NetworkManager.DisconnectedCallback(this.Network_OnDisconnected); | 135 | client.Network.Disconnected += this.Network_OnDisconnected; |
136 | if (client.Network.Login(firstname, lastname, password, "pCampBot", "Your name")) | 136 | if (client.Network.Login(firstname, lastname, password, "pCampBot", "Your name")) |
137 | { | 137 | { |
138 | 138 | ||
@@ -155,19 +155,22 @@ namespace OpenSim.TestSuite | |||
155 | } | 155 | } |
156 | } | 156 | } |
157 | 157 | ||
158 | public void Network_OnConnected(object sender) | 158 | public void Network_LoginProgress(object sender, LoginProgressEventArgs args) |
159 | { | 159 | { |
160 | if (OnConnected != null) | 160 | if (args.Status == LoginStatus.Success) |
161 | { | 161 | { |
162 | OnConnected(this, EventType.CONNECTED); | 162 | if (OnConnected != null) |
163 | { | ||
164 | OnConnected(this, EventType.CONNECTED); | ||
165 | } | ||
163 | } | 166 | } |
164 | } | 167 | } |
165 | 168 | ||
166 | public void Simulator_Connected(object sender) | 169 | public void Network_SimConnected(object sender, SimConnectedEventArgs args) |
167 | { | 170 | { |
168 | } | 171 | } |
169 | 172 | ||
170 | public void Network_OnDisconnected(NetworkManager.DisconnectType reason, string message) | 173 | public void Network_OnDisconnected(object sender, DisconnectedEventArgs args) |
171 | { | 174 | { |
172 | if (OnDisconnected != null) | 175 | if (OnDisconnected != null) |
173 | { | 176 | { |