mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 19:36:07 +08:00
More EntityTransferContext plumbing
This commit is contained in:
@@ -311,8 +311,9 @@ namespace OpenSim.Framework.Tests
|
||||
Agent1Data.SessionID = SessionId;
|
||||
Agent1Data.startpos = StartPos;
|
||||
|
||||
EntityTransferContext ctx = new EntityTransferContext();
|
||||
OSDMap map2;
|
||||
OSDMap map = Agent1Data.PackAgentCircuitData(-1);
|
||||
OSDMap map = Agent1Data.PackAgentCircuitData(ctx);
|
||||
try
|
||||
{
|
||||
string str = OSDParser.SerializeJsonString(map);
|
||||
|
||||
@@ -116,7 +116,8 @@ namespace OpenSim.Framework.Tests
|
||||
position2 = new AgentPosition();
|
||||
|
||||
Assert.IsFalse(position2.AgentID == position1.AgentID, "Test Error, position2 should be a blank uninitialized AgentPosition");
|
||||
position2.Unpack(position1.Pack(), null);
|
||||
EntityTransferContext ctx = new EntityTransferContext();
|
||||
position2.Unpack(position1.Pack(ctx), null, ctx);
|
||||
|
||||
Assert.IsTrue(position2.AgentID == position1.AgentID, "Agent ID didn't unpack the same way it packed");
|
||||
Assert.IsTrue(position2.Position == position1.Position, "Position didn't unpack the same way it packed");
|
||||
@@ -305,4 +306,4 @@ namespace OpenSim.Framework.Tests
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user