aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/world/Avatar.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/world/Avatar.cs')
-rw-r--r--src/world/Avatar.cs25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/world/Avatar.cs b/src/world/Avatar.cs
index dfb739e..775b601 100644
--- a/src/world/Avatar.cs
+++ b/src/world/Avatar.cs
@@ -32,6 +32,31 @@ namespace OpenSim.world
32 ControllingClient.OutPacket(mov); 32 ControllingClient.OutPacket(mov);
33 } 33 }
34 34
35 public void SendInitialPosition() {
36 }
37
38 public void SendInitialAppearance() {
39 AgentWearablesUpdatePacket aw = new AgentWearablesUpdatePacket();
40 aw.AgentData.AgentID = this.ControllingClient.AgentID;
41 aw.AgentData.SerialNum = 0;
42 aw.AgentData.SessionID = ControllingClient.SessionID;
43
44 aw.WearableData = new AgentWearablesUpdatePacket.WearableDataBlock[13];
45 AgentWearablesUpdatePacket.WearableDataBlock awb = new AgentWearablesUpdatePacket.WearableDataBlock();
46 awb.WearableType = (byte)0;
47 awb.AssetID = new LLUUID("66c41e39-38f9-f75a-024e-585989bfab73");
48 awb.ItemID = LLUUID.Random();
49 aw.WearableData[0] = awb;
50
51 for(int i=1; i<13; i++) {
52 awb = new AgentWearablesUpdatePacket.WearableDataBlock();
53 awb.WearableType = (byte)i;
54 awb.AssetID = new LLUUID("00000000-0000-0000-0000-000000000000");
55 awb.ItemID = new LLUUID("00000000-0000-0000-0000-000000000000");
56 aw.WearableData[i] = awb;
57 }
58 }
59
35 public void SendRegionHandshake(World RegionInfo) { 60 public void SendRegionHandshake(World RegionInfo) {
36 Console.WriteLine("Avatar.cs:SendRegionHandshake() - Creating empty RegionHandshake packet"); 61 Console.WriteLine("Avatar.cs:SendRegionHandshake() - Creating empty RegionHandshake packet");
37 System.Text.Encoding _enc = System.Text.Encoding.ASCII; 62 System.Text.Encoding _enc = System.Text.Encoding.ASCII;