本文整理匯總了C#中OpenSim.Region.Framework.Scenes.SceneObjectGroup.ScheduleGroupTerseUpdate方法的典型用法代碼示例。如果您正苦於以下問題:C# SceneObjectGroup.ScheduleGroupTerseUpdate方法的具體用法?C# SceneObjectGroup.ScheduleGroupTerseUpdate怎麽用?C# SceneObjectGroup.ScheduleGroupTerseUpdate使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類OpenSim.Region.Framework.Scenes.SceneObjectGroup
的用法示例。
在下文中一共展示了SceneObjectGroup.ScheduleGroupTerseUpdate方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: EventManagerOnSignificantObjectMovement
//Like handleEventManagerOnSignificantClientMovement, but for objects for parcel incoming object permissions
public void EventManagerOnSignificantObjectMovement(SceneObjectGroup group)
{
ILandObject over = GetLandObject((int)group.AbsolutePosition.X, (int)group.AbsolutePosition.Y);
if (over != null)
{
//Entered this new parcel
if (over.LandData.GlobalID != group.m_lastParcelUUID)
{
if (!m_scene.Permissions.CanObjectEntry(group.UUID,
false, group.AbsolutePosition, group.OwnerID))
{
//Revert the position and do not update the parcel ID
group.AbsolutePosition = group.m_lastSignificantPosition;
//If the object has physics, stop it from moving
if ((group.RootPart.Flags & PrimFlags.Physics) == PrimFlags.Physics)
{
bool wasTemporary = ((group.RootPart.Flags & PrimFlags.TemporaryOnRez) != 0);
bool wasPhantom = ((group.RootPart.Flags & PrimFlags.Phantom) != 0);
bool wasVD = group.RootPart.VolumeDetectActive;
group.RootPart.UpdatePrimFlags(false, wasTemporary, wasPhantom, wasVD);
}
//Send an update so that all clients see it
group.ScheduleGroupTerseUpdate();
}
else
group.m_lastParcelUUID = over.LandData.GlobalID; //Update the UUID then
}
}
}