diff options
author | MW | 2007-05-27 18:52:42 +0000 |
---|---|---|
committer | MW | 2007-05-27 18:52:42 +0000 |
commit | c746a2f9f4f0b1e7eea564effdae63472f79ab22 (patch) | |
tree | 54d23af3d168958bfec995cf2987cf5af79ac149 /OpenSim/OpenSim.World/Avatar.cs | |
parent | Goodbye World (diff) | |
download | opensim-SC_OLD-c746a2f9f4f0b1e7eea564effdae63472f79ab22.zip opensim-SC_OLD-c746a2f9f4f0b1e7eea564effdae63472f79ab22.tar.gz opensim-SC_OLD-c746a2f9f4f0b1e7eea564effdae63472f79ab22.tar.bz2 opensim-SC_OLD-c746a2f9f4f0b1e7eea564effdae63472f79ab22.tar.xz |
Should allow multiple worlds (and UDP servers) to be ran in one instance, just missing backend comms and working Avatar/primitives classes.
Diffstat (limited to 'OpenSim/OpenSim.World/Avatar.cs')
-rw-r--r-- | OpenSim/OpenSim.World/Avatar.cs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/OpenSim/OpenSim.World/Avatar.cs b/OpenSim/OpenSim.World/Avatar.cs index cca266b..551283a 100644 --- a/OpenSim/OpenSim.World/Avatar.cs +++ b/OpenSim/OpenSim.World/Avatar.cs | |||
@@ -17,7 +17,7 @@ namespace OpenSim.world | |||
17 | public static AvatarAnimations Animations; | 17 | public static AvatarAnimations Animations; |
18 | public string firstname; | 18 | public string firstname; |
19 | public string lastname; | 19 | public string lastname; |
20 | public ClientView ControllingClient; | 20 | public IClientAPI ControllingClient; |
21 | public LLUUID current_anim; | 21 | public LLUUID current_anim; |
22 | public int anim_seq; | 22 | public int anim_seq; |
23 | private static libsecondlife.Packets.ObjectUpdatePacket.ObjectDataBlock AvatarTemplate; | 23 | private static libsecondlife.Packets.ObjectUpdatePacket.ObjectDataBlock AvatarTemplate; |
@@ -37,7 +37,7 @@ namespace OpenSim.world | |||
37 | private bool m_regionTerraform; | 37 | private bool m_regionTerraform; |
38 | private bool childAvatar = false; | 38 | private bool childAvatar = false; |
39 | 39 | ||
40 | public Avatar(ClientView TheClient, World world, string regionName, Dictionary<uint, ClientView> clientThreads, ulong regionHandle, bool regionTerraform, ushort regionWater) | 40 | public Avatar(IClientAPI TheClient, World world, string regionName, Dictionary<uint, IClientAPI> clientThreads, ulong regionHandle, bool regionTerraform, ushort regionWater) |
41 | { | 41 | { |
42 | m_world = world; | 42 | m_world = world; |
43 | // m_clientThreads = clientThreads; | 43 | // m_clientThreads = clientThreads; |
@@ -49,7 +49,7 @@ namespace OpenSim.world | |||
49 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Avatar.cs - Loading details from grid (DUMMY)"); | 49 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Avatar.cs - Loading details from grid (DUMMY)"); |
50 | ControllingClient = TheClient; | 50 | ControllingClient = TheClient; |
51 | localid = 8880000 + (this.m_world._localNumber++); | 51 | localid = 8880000 + (this.m_world._localNumber++); |
52 | Pos = ControllingClient.startpos; | 52 | Pos = ControllingClient.StartPos; |
53 | visualParams = new byte[218]; | 53 | visualParams = new byte[218]; |
54 | for (int i = 0; i < 218; i++) | 54 | for (int i = 0; i < 218; i++) |
55 | { | 55 | { |
@@ -66,14 +66,14 @@ namespace OpenSim.world | |||
66 | this.avatarAppearanceTexture = new LLObject.TextureEntry(new LLUUID("00000000-0000-0000-5005-000000000005")); | 66 | this.avatarAppearanceTexture = new LLObject.TextureEntry(new LLUUID("00000000-0000-0000-5005-000000000005")); |
67 | 67 | ||
68 | //register for events | 68 | //register for events |
69 | ControllingClient.OnRequestWearables += new ClientView.GenericCall(this.SendOurAppearance); | 69 | ControllingClient.OnRequestWearables += new GenericCall(this.SendOurAppearance); |
70 | ControllingClient.OnSetAppearance += new SetAppearance(this.SetAppearance); | 70 | ControllingClient.OnSetAppearance += new SetAppearance(this.SetAppearance); |
71 | ControllingClient.OnCompleteMovementToRegion += new ClientView.GenericCall2(this.CompleteMovement); | 71 | ControllingClient.OnCompleteMovementToRegion += new GenericCall2(this.CompleteMovement); |
72 | ControllingClient.OnCompleteMovementToRegion += new ClientView.GenericCall2(this.SendInitialPosition); | 72 | ControllingClient.OnCompleteMovementToRegion += new GenericCall2(this.SendInitialPosition); |
73 | ControllingClient.OnAgentUpdate += new ClientView.GenericCall3(this.HandleAgentUpdate); | 73 | ControllingClient.OnAgentUpdate += new GenericCall3(this.HandleAgentUpdate); |
74 | ControllingClient.OnStartAnim += new StartAnim(this.SendAnimPack); | 74 | ControllingClient.OnStartAnim += new StartAnim(this.SendAnimPack); |
75 | ControllingClient.OnChildAgentStatus += new ClientView.StatusChange(this.ChildStatusChange); | 75 | ControllingClient.OnChildAgentStatus += new StatusChange(this.ChildStatusChange); |
76 | ControllingClient.OnStopMovement += new ClientView.GenericCall2(this.StopMovement); | 76 | ControllingClient.OnStopMovement += new GenericCall2(this.StopMovement); |
77 | } | 77 | } |
78 | 78 | ||
79 | public PhysicsActor PhysActor | 79 | public PhysicsActor PhysActor |