當前位置: 首頁>>代碼示例>>C#>>正文


C# SceneObjectGroup.ScheduleGroupForTerseUpdate方法代碼示例

本文整理匯總了C#中OpenSim.Region.Framework.Scenes.SceneObjectGroup.ScheduleGroupForTerseUpdate方法的典型用法代碼示例。如果您正苦於以下問題:C# SceneObjectGroup.ScheduleGroupForTerseUpdate方法的具體用法?C# SceneObjectGroup.ScheduleGroupForTerseUpdate怎麽用?C# SceneObjectGroup.ScheduleGroupForTerseUpdate使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在OpenSim.Region.Framework.Scenes.SceneObjectGroup的用法示例。


在下文中一共展示了SceneObjectGroup.ScheduleGroupForTerseUpdate方法的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))
                    {
                        //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.ObjectFlags & (uint)PrimFlags.TemporaryOnRez) != 0);
                            bool wasPhantom = ((group.RootPart.ObjectFlags & (uint)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.ScheduleGroupForTerseUpdate();
                    }
                    else
                        group.m_lastParcelUUID = over.LandData.GlobalID; //Update the UUID then
                }
            }
        }
開發者ID:shangcheng,項目名稱:Aurora,代碼行數:31,代碼來源:LandManagementModule.cs


注:本文中的OpenSim.Region.Framework.Scenes.SceneObjectGroup.ScheduleGroupForTerseUpdate方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。