当前位置: 首页>>代码示例>>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;未经允许,请勿转载。