本文整理汇总了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;
}
示例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);
}
示例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);
}
示例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]);
}
}
}
示例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();
}
示例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);
}
}
示例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);
}
示例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);
}