diff options
author | lbsa71 | 2007-06-17 16:49:33 +0000 |
---|---|---|
committer | lbsa71 | 2007-06-17 16:49:33 +0000 |
commit | 5d59ffe99d7c592d87361e3bb1b1ac152bf5980c (patch) | |
tree | c25b0b3e24b13597b3675ce09b3206cf07feef85 /OpenSim/Examples/SimpleApp/Program.cs | |
parent | Very Preliminary local teleporting added (currently only can teleport within... (diff) | |
download | opensim-SC_OLD-5d59ffe99d7c592d87361e3bb1b1ac152bf5980c.zip opensim-SC_OLD-5d59ffe99d7c592d87361e3bb1b1ac152bf5980c.tar.gz opensim-SC_OLD-5d59ffe99d7c592d87361e3bb1b1ac152bf5980c.tar.bz2 opensim-SC_OLD-5d59ffe99d7c592d87361e3bb1b1ac152bf5980c.tar.xz |
* Added the two Sample Apps to the solution
* Made them build
* They don't work though, gotta have a look see at that later.
* ignored a shitload of bins
Diffstat (limited to 'OpenSim/Examples/SimpleApp/Program.cs')
-rw-r--r-- | OpenSim/Examples/SimpleApp/Program.cs | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/OpenSim/Examples/SimpleApp/Program.cs b/OpenSim/Examples/SimpleApp/Program.cs index e44bdba..b3b04ab 100644 --- a/OpenSim/Examples/SimpleApp/Program.cs +++ b/OpenSim/Examples/SimpleApp/Program.cs | |||
@@ -2,16 +2,17 @@ using System; | |||
2 | using System.Collections.Generic; | 2 | using System.Collections.Generic; |
3 | using System.Text; | 3 | using System.Text; |
4 | using OpenSim; | 4 | using OpenSim; |
5 | using OpenSim.Servers; | ||
6 | using OpenSim.GridInterfaces.Local; | 5 | using OpenSim.GridInterfaces.Local; |
7 | using OpenSim.Framework.Interfaces; | 6 | using OpenSim.Framework.Interfaces; |
8 | using OpenSim.Framework.Types; | 7 | using OpenSim.Framework.Types; |
9 | using OpenSim.UserServer; | ||
10 | using OpenSim.Framework.Console; | 8 | using OpenSim.Framework.Console; |
11 | using OpenSim.world; | 9 | using OpenSim.world; |
12 | using OpenSim.Physics.Manager; | ||
13 | using OpenSim.Assets; | 10 | using OpenSim.Assets; |
14 | using libsecondlife; | 11 | using libsecondlife; |
12 | using OpenSim.UserServer; | ||
13 | using OpenSim.Servers; | ||
14 | using OpenSim.Framework; | ||
15 | using OpenSim.Caches; | ||
15 | 16 | ||
16 | namespace SimpleApp | 17 | namespace SimpleApp |
17 | { | 18 | { |
@@ -32,9 +33,9 @@ namespace SimpleApp | |||
32 | 33 | ||
33 | LoginServer loginServer = new LoginServer( simAddr, simPort, 0, 0, false ); | 34 | LoginServer loginServer = new LoginServer( simAddr, simPort, 0, 0, false ); |
34 | loginServer.Startup(); | 35 | loginServer.Startup(); |
35 | 36 | loginServer.SetSessionHandler( AddNewSessionHandler ); | |
36 | AuthenticateSessionsLocal localSessions = new AuthenticateSessionsLocal(); | 37 | |
37 | loginServer.SetSessionHandler(localSessions.AddNewSessionHandler ); | 38 | AuthenticateSessionsBase localSessions = new AuthenticateSessionsBase(); |
38 | 39 | ||
39 | InventoryCache inventoryCache = new InventoryCache(); | 40 | InventoryCache inventoryCache = new InventoryCache(); |
40 | 41 | ||
@@ -67,9 +68,10 @@ namespace SimpleApp | |||
67 | m_console.ReadLine(); | 68 | m_console.ReadLine(); |
68 | } | 69 | } |
69 | 70 | ||
70 | private void AddNewSessionHandler(Login loginData) | 71 | private bool AddNewSessionHandler(ulong regionHandle, Login loginData) |
71 | { | 72 | { |
72 | m_console.WriteLine( LogPriority.NORMAL, "Recieved Login from [{0}] [{1}]", loginData.First, loginData.Last ); | 73 | m_console.WriteLine( LogPriority.NORMAL, "Region [{0}] recieved Login from [{1}] [{2}]", regionHandle, loginData.First, loginData.Last ); |
74 | return true; | ||
73 | } | 75 | } |
74 | 76 | ||
75 | #region IAssetReceiver Members | 77 | #region IAssetReceiver Members |