aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorJeff Ames2007-10-29 07:57:38 +0000
committerJeff Ames2007-10-29 07:57:38 +0000
commit7c6ef95f2f8a4fb06a1359e9625e80e4cb216a5d (patch)
treeae94989730f354f17619da74ca23eb2f1994f6b1 /OpenSim/Region
parentshould help with ODE bounce on region cross (diff)
downloadopensim-SC_OLD-7c6ef95f2f8a4fb06a1359e9625e80e4cb216a5d.zip
opensim-SC_OLD-7c6ef95f2f8a4fb06a1359e9625e80e4cb216a5d.tar.gz
opensim-SC_OLD-7c6ef95f2f8a4fb06a1359e9625e80e4cb216a5d.tar.bz2
opensim-SC_OLD-7c6ef95f2f8a4fb06a1359e9625e80e4cb216a5d.tar.xz
normalized line endings
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Environment/Interfaces/IAvatarFactory.cs26
-rw-r--r--OpenSim/Region/Environment/Modules/AvatarFactoryModule.cs114
2 files changed, 70 insertions, 70 deletions
diff --git a/OpenSim/Region/Environment/Interfaces/IAvatarFactory.cs b/OpenSim/Region/Environment/Interfaces/IAvatarFactory.cs
index b6f24c3..28a5b4f 100644
--- a/OpenSim/Region/Environment/Interfaces/IAvatarFactory.cs
+++ b/OpenSim/Region/Environment/Interfaces/IAvatarFactory.cs
@@ -1,13 +1,13 @@
1using System; 1using System;
2using System.Collections.Generic; 2using System.Collections.Generic;
3using System.Text; 3using System.Text;
4using libsecondlife; 4using libsecondlife;
5using OpenSim.Framework.Types; 5using OpenSim.Framework.Types;
6 6
7namespace OpenSim.Region.Environment.Interfaces 7namespace OpenSim.Region.Environment.Interfaces
8{ 8{
9 public interface IAvatarFactory : IRegionModule 9 public interface IAvatarFactory : IRegionModule
10 { 10 {
11 bool TryGetIntialAvatarAppearance(LLUUID avatarId, out AvatarWearable[] wearables, out byte[] visualParams); 11 bool TryGetIntialAvatarAppearance(LLUUID avatarId, out AvatarWearable[] wearables, out byte[] visualParams);
12 } 12 }
13} 13}
diff --git a/OpenSim/Region/Environment/Modules/AvatarFactoryModule.cs b/OpenSim/Region/Environment/Modules/AvatarFactoryModule.cs
index f825b7a..cb8c758 100644
--- a/OpenSim/Region/Environment/Modules/AvatarFactoryModule.cs
+++ b/OpenSim/Region/Environment/Modules/AvatarFactoryModule.cs
@@ -1,57 +1,57 @@
1using System; 1using System;
2using System.Collections.Generic; 2using System.Collections.Generic;
3using System.Text; 3using System.Text;
4using libsecondlife; 4using libsecondlife;
5using Nini.Config; 5using Nini.Config;
6using OpenSim.Framework.Types; 6using OpenSim.Framework.Types;
7using OpenSim.Region.Environment.Interfaces; 7using OpenSim.Region.Environment.Interfaces;
8using OpenSim.Region.Environment.Scenes; 8using OpenSim.Region.Environment.Scenes;
9 9
10namespace OpenSim.Region.Environment.Modules 10namespace OpenSim.Region.Environment.Modules
11{ 11{
12 public class AvatarFactoryModule : IAvatarFactory 12 public class AvatarFactoryModule : IAvatarFactory
13 { 13 {
14 public bool TryGetIntialAvatarAppearance(LLUUID avatarId, out AvatarWearable[] wearables, out byte[] visualParams) 14 public bool TryGetIntialAvatarAppearance(LLUUID avatarId, out AvatarWearable[] wearables, out byte[] visualParams)
15 { 15 {
16 GetDefaultAvatarAppearance(out wearables, out visualParams); 16 GetDefaultAvatarAppearance(out wearables, out visualParams);
17 return true; 17 return true;
18 } 18 }
19 19
20 public void Initialise(Scene scene, IConfigSource source) 20 public void Initialise(Scene scene, IConfigSource source)
21 { 21 {
22 scene.RegisterModuleInterface<IAvatarFactory>(this); 22 scene.RegisterModuleInterface<IAvatarFactory>(this);
23 } 23 }
24 24
25 public void PostInitialise() 25 public void PostInitialise()
26 { 26 {
27 } 27 }
28 28
29 public void Close() 29 public void Close()
30 { 30 {
31 } 31 }
32 32
33 public string Name 33 public string Name
34 { 34 {
35 get { return "Default Avatar Factory"; } 35 get { return "Default Avatar Factory"; }
36 } 36 }
37 37
38 public bool IsSharedModule 38 public bool IsSharedModule
39 { 39 {
40 get { return true; } 40 get { return true; }
41 } 41 }
42 42
43 public static void GetDefaultAvatarAppearance(out AvatarWearable[] wearables, out byte[] visualParams) 43 public static void GetDefaultAvatarAppearance(out AvatarWearable[] wearables, out byte[] visualParams)
44 { 44 {
45 visualParams = new byte[218]; 45 visualParams = new byte[218];
46 for (int i = 0; i < 218; i++) 46 for (int i = 0; i < 218; i++)
47 { 47 {
48 visualParams[i] = 100; 48 visualParams[i] = 100;
49 } 49 }
50 50
51 wearables = AvatarWearable.DefaultWearables; 51 wearables = AvatarWearable.DefaultWearables;
52 } 52 }
53 } 53 }
54 54
55 55
56 56
57} 57}