本文整理汇总了C#中RegionSyncModule.SendDelinkObjectToRelevantSyncConnectors方法的典型用法代码示例。如果您正苦于以下问题:C# RegionSyncModule.SendDelinkObjectToRelevantSyncConnectors方法的具体用法?C# RegionSyncModule.SendDelinkObjectToRelevantSyncConnectors怎么用?C# RegionSyncModule.SendDelinkObjectToRelevantSyncConnectors使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RegionSyncModule
的用法示例。
在下文中一共展示了RegionSyncModule.SendDelinkObjectToRelevantSyncConnectors方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: HandleIn
public override bool HandleIn(RegionSyncModule pRegionContext)
{
if (base.HandleIn(pRegionContext))
{
// if this is a relay node, forward the message
if (pRegionContext.IsSyncRelay)
{
List<SceneObjectGroup> tempBeforeDelinkGroups = new List<SceneObjectGroup>();
foreach (UUID sogID in BeforeDelinkGroupIDs)
{
SceneObjectGroup sog = pRegionContext.Scene.GetGroupByPrim(sogID);
tempBeforeDelinkGroups.Add(sog);
}
pRegionContext.SendDelinkObjectToRelevantSyncConnectors(ConnectorContext.otherSideActorID, tempBeforeDelinkGroups, this);
}
//DSL Scene.DelinkObjectsBySync(delinkPrimIDs, beforeDelinkGroupIDs, incomingAfterDelinkGroups);
//Sync properties
//Update properties, for each prim in each deLinked-Object
foreach (Dictionary<UUID, SyncInfoBase> primsSyncInfo in PrimSyncInfo)
{
foreach (KeyValuePair<UUID, SyncInfoBase> inPrimSyncInfo in primsSyncInfo)
{
UUID uuid = inPrimSyncInfo.Key;
SyncInfoBase updatedPrimSyncInfo = inPrimSyncInfo.Value;
SceneObjectPart part = pRegionContext.Scene.GetSceneObjectPart(uuid);
if (part == null)
{
m_log.ErrorFormat("{0}: HandleSyncDelinkObject, prim {1} not in local Scene Graph after DelinkObjectsBySync is called", LogHeader, uuid);
}
else
{
pRegionContext.InfoManager.UpdateSyncInfoBySync(part.UUID, updatedPrimSyncInfo);
}
}
}
}
return true;
}