diff options
author | lbsa71 | 2007-10-10 18:24:13 +0000 |
---|---|---|
committer | lbsa71 | 2007-10-10 18:24:13 +0000 |
commit | a40e7100a232827cffb813bbbbe9374324ad3448 (patch) | |
tree | 7f16f392d653f155ca90d5477c842db9c881f3ed /OpenSim/Region/Environment/Modules/AvatarProfilesModule.cs | |
parent | Added unit tests, based on nunit for the IInventoryData (diff) | |
download | opensim-SC-a40e7100a232827cffb813bbbbe9374324ad3448.zip opensim-SC-a40e7100a232827cffb813bbbbe9374324ad3448.tar.gz opensim-SC-a40e7100a232827cffb813bbbbe9374324ad3448.tar.bz2 opensim-SC-a40e7100a232827cffb813bbbbe9374324ad3448.tar.xz |
* Gave ModuleLoader some good lovin'
* Introduced ModuleLoader.PickupModules that currently picks up IRegionModule:s from /bin
* Made LogBase thread-safe (or at least not thread-ignorant)
* Ignored some genned files
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Modules/AvatarProfilesModule.cs | 128 |
1 files changed, 64 insertions, 64 deletions
diff --git a/OpenSim/Region/Environment/Modules/AvatarProfilesModule.cs b/OpenSim/Region/Environment/Modules/AvatarProfilesModule.cs index aaa9261..d8e4234 100644 --- a/OpenSim/Region/Environment/Modules/AvatarProfilesModule.cs +++ b/OpenSim/Region/Environment/Modules/AvatarProfilesModule.cs | |||
@@ -1,65 +1,65 @@ | |||
1 | using libsecondlife; | 1 | using libsecondlife; |
2 | using OpenSim.Framework.Interfaces; | 2 | using OpenSim.Framework.Interfaces; |
3 | using OpenSim.Region.Environment.Interfaces; | 3 | using OpenSim.Region.Environment.Interfaces; |
4 | using OpenSim.Region.Environment.Scenes; | 4 | using OpenSim.Region.Environment.Scenes; |
5 | 5 | ||
6 | namespace OpenSim.Region.Environment.Modules | 6 | namespace OpenSim.Region.Environment.Modules |
7 | { | 7 | { |
8 | public class AvatarProfilesModule : IRegionModule | 8 | public class AvatarProfilesModule : IRegionModule |
9 | { | 9 | { |
10 | private Scene m_scene; | 10 | private Scene m_scene; |
11 | 11 | ||
12 | public AvatarProfilesModule() | 12 | public AvatarProfilesModule() |
13 | { | 13 | { |
14 | } | 14 | } |
15 | 15 | ||
16 | public void Initialise(Scene scene) | 16 | public void Initialise(Scene scene) |
17 | { | 17 | { |
18 | m_scene = scene; | 18 | m_scene = scene; |
19 | m_scene.EventManager.OnNewClient += NewClient; | 19 | m_scene.EventManager.OnNewClient += NewClient; |
20 | } | 20 | } |
21 | 21 | ||
22 | public void PostInitialise() | 22 | public void PostInitialise() |
23 | { | 23 | { |
24 | } | 24 | } |
25 | 25 | ||
26 | public void CloseDown() | 26 | public void Close() |
27 | { | 27 | { |
28 | } | 28 | } |
29 | 29 | ||
30 | public string GetName() | 30 | public string Name |
31 | { | 31 | { |
32 | return "AvatarProfilesModule"; | 32 | get { return "AvatarProfilesModule"; } |
33 | } | 33 | } |
34 | 34 | ||
35 | public bool IsSharedModule() | 35 | public bool IsSharedModule |
36 | { | 36 | { |
37 | return false; | 37 | get { return false; } |
38 | } | 38 | } |
39 | 39 | ||
40 | public void NewClient(IClientAPI client) | 40 | public void NewClient(IClientAPI client) |
41 | { | 41 | { |
42 | client.OnRequestAvatarProperties += RequestAvatarProperty; | 42 | client.OnRequestAvatarProperties += RequestAvatarProperty; |
43 | } | 43 | } |
44 | 44 | ||
45 | public void RemoveClient(IClientAPI client) | 45 | public void RemoveClient(IClientAPI client) |
46 | { | 46 | { |
47 | client.OnRequestAvatarProperties -= RequestAvatarProperty; | 47 | client.OnRequestAvatarProperties -= RequestAvatarProperty; |
48 | } | 48 | } |
49 | 49 | ||
50 | /// <summary> | 50 | /// <summary> |
51 | /// | 51 | /// |
52 | /// </summary> | 52 | /// </summary> |
53 | /// <param name="remoteClient"></param> | 53 | /// <param name="remoteClient"></param> |
54 | /// <param name="avatarID"></param> | 54 | /// <param name="avatarID"></param> |
55 | public void RequestAvatarProperty(IClientAPI remoteClient, LLUUID avatarID) | 55 | public void RequestAvatarProperty(IClientAPI remoteClient, LLUUID avatarID) |
56 | { | 56 | { |
57 | string about = "OpenSim crash test dummy"; | 57 | string about = "OpenSim crash test dummy"; |
58 | string bornOn = "Before now"; | 58 | string bornOn = "Before now"; |
59 | string flAbout = "First life? What is one of those? OpenSim is my life!"; | 59 | string flAbout = "First life? What is one of those? OpenSim is my life!"; |
60 | LLUUID partner = new LLUUID("11111111-1111-0000-0000-000100bba000"); | 60 | LLUUID partner = new LLUUID("11111111-1111-0000-0000-000100bba000"); |
61 | remoteClient.SendAvatarProperties(avatarID, about, bornOn, "", flAbout, 0, LLUUID.Zero, LLUUID.Zero, "", | 61 | remoteClient.SendAvatarProperties(avatarID, about, bornOn, "", flAbout, 0, LLUUID.Zero, LLUUID.Zero, "", |
62 | partner); | 62 | partner); |
63 | } | 63 | } |
64 | } | 64 | } |
65 | } \ No newline at end of file | 65 | } \ No newline at end of file |