diff options
author | Jeff Ames | 2007-10-29 07:57:38 +0000 |
---|---|---|
committer | Jeff Ames | 2007-10-29 07:57:38 +0000 |
commit | 7c6ef95f2f8a4fb06a1359e9625e80e4cb216a5d (patch) | |
tree | ae94989730f354f17619da74ca23eb2f1994f6b1 /OpenSim/Region/Environment/Modules/AvatarFactoryModule.cs | |
parent | should help with ODE bounce on region cross (diff) | |
download | opensim-SC-7c6ef95f2f8a4fb06a1359e9625e80e4cb216a5d.zip opensim-SC-7c6ef95f2f8a4fb06a1359e9625e80e4cb216a5d.tar.gz opensim-SC-7c6ef95f2f8a4fb06a1359e9625e80e4cb216a5d.tar.bz2 opensim-SC-7c6ef95f2f8a4fb06a1359e9625e80e4cb216a5d.tar.xz |
normalized line endings
Diffstat (limited to 'OpenSim/Region/Environment/Modules/AvatarFactoryModule.cs')
-rw-r--r-- | OpenSim/Region/Environment/Modules/AvatarFactoryModule.cs | 114 |
1 files changed, 57 insertions, 57 deletions
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 @@ | |||
1 | using System; | 1 | using System; |
2 | using System.Collections.Generic; | 2 | using System.Collections.Generic; |
3 | using System.Text; | 3 | using System.Text; |
4 | using libsecondlife; | 4 | using libsecondlife; |
5 | using Nini.Config; | 5 | using Nini.Config; |
6 | using OpenSim.Framework.Types; | 6 | using OpenSim.Framework.Types; |
7 | using OpenSim.Region.Environment.Interfaces; | 7 | using OpenSim.Region.Environment.Interfaces; |
8 | using OpenSim.Region.Environment.Scenes; | 8 | using OpenSim.Region.Environment.Scenes; |
9 | 9 | ||
10 | namespace OpenSim.Region.Environment.Modules | 10 | namespace 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 | } |