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


C# LandData.Copy方法代碼示例

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


在下文中一共展示了LandData.Copy方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: LandObject

 public LandObject(LandData landData, Scene scene)
 {
     LandData = landData.Copy();
     m_scene = scene;
 }
開發者ID:velus,項目名稱:opensim,代碼行數:5,代碼來源:LandObject.cs

示例2: IncomingLandObjectFromStorage

 public void IncomingLandObjectFromStorage(LandData data)
 {
     ILandObject new_land = new LandObject(data.OwnerID, data.IsGroupOwned, m_scene);
     new_land.LandData = data.Copy();
     new_land.SetLandBitmapFromByteArray();            
     AddLandObject(new_land);
 }
開發者ID:AkiraSonoda,項目名稱:akisim,代碼行數:7,代碼來源:LandManagementModule.cs

示例3: UpdateLandObject

        public void UpdateLandObject(int local_id, LandData data)
        {
            LandData newData = data.Copy();
            newData.LocalID = local_id;

            ILandObject land;
            lock (m_landList)
            {
                if (m_landList.TryGetValue(local_id, out land))
                    land.LandData = newData;
            }

            if (land != null)
                m_scene.EventManager.TriggerLandObjectUpdated((uint)local_id, land);
        }
開發者ID:AkiraSonoda,項目名稱:akisim,代碼行數:15,代碼來源:LandManagementModule.cs

示例4: UpdateLandObject

        public void UpdateLandObject(int local_id, LandData data)
        {
            LandData newData = data.Copy();
            newData.LocalID = local_id;

            lock (m_landList)
            {
                if (m_landList.ContainsKey(local_id))
                {
                    m_landList[local_id].LandData = newData;
                    m_scene.EventManager.TriggerLandObjectUpdated((uint)local_id, m_landList[local_id]);
                }
            }
        }
開發者ID:CCIR,項目名稱:opensim,代碼行數:14,代碼來源:LandManagementModule.cs

示例5: IncomingLandObjectFromStorage

        private void IncomingLandObjectFromStorage(LandData data)
        {
            ILandObject new_land = new LandObject(data.OwnerID, data.IsGroupOwned, m_scene);
            new_land.LandData = data.Copy();

            new_land.SetLandBitmapFromByteArray();            
            AddLandObject(new_land);
//            new_land.SendLandUpdateToAvatarsOverMe();
        }
開發者ID:nebadon2025,項目名稱:opensimulator,代碼行數:9,代碼來源:LandManagementModule.cs

示例6: UpdateLandObject

        public void UpdateLandObject(int local_id, LandData data)
        {
            LandData newData = data.Copy();
            newData.LocalID = local_id;

            ILandObject dirtyObject = null;
            lock (m_landList)
            {
                m_log.InfoFormat("[LAND]: Updating parcel {0} price={1} and flags={2:X8}", local_id, newData.SalePrice, newData.Flags);
                if (m_landList.ContainsKey(local_id))
                {
                    m_landList[local_id].landData = newData;
                    dirtyObject = m_landList[local_id];
                }
                else
                    m_log.ErrorFormat("[LAND]: UpdateLandObject: Parcel [{0}] not found.", local_id);
            }

            if (dirtyObject != null)
            {
                m_scene.EventManager.TriggerLandObjectUpdated((uint)local_id, dirtyObject);
            }
        }
開發者ID:M-O-S-E-S,項目名稱:halcyon,代碼行數:23,代碼來源:LandManagementModule.cs

示例7: IncomingLandObjectFromStorage

 public void IncomingLandObjectFromStorage(LandData data)
 {
     ILandObject new_land = new LandObject(data.OwnerID, data.IsGroupOwned, m_scene);
     new_land.landData = data.Copy();
     new_land.setLandBitmapFromByteArray();
     new_land.landData.UpdateForcedAutoReturn(m_scene.RegionInfo.MaxAutoReturn);
     AddLandObject(new_land);
 }
開發者ID:M-O-S-E-S,項目名稱:halcyon,代碼行數:8,代碼來源:LandManagementModule.cs

示例8: UpdateLandObject

        public void UpdateLandObject(int local_id, LandData data)
        {
            LandData newData = data.Copy();
            newData.LocalID = local_id;

            ILandObject land;
            m_landListRwLock.AcquireReaderLock(-1);
            try
            {
                if (m_landList.TryGetValue(local_id, out land))
                    land.LandData = newData;
            }
            finally
            {
                m_landListRwLock.ReleaseReaderLock();
            }

            if (land != null)
                m_scene.EventManager.TriggerLandObjectUpdated((uint)local_id, land);
        }
開發者ID:BogusCurry,項目名稱:arribasim-dev,代碼行數:20,代碼來源:LandManagementModule.cs


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