本文整理汇总了C#中IClientAPI.SendLayerData方法的典型用法代码示例。如果您正苦于以下问题:C# IClientAPI.SendLayerData方法的具体用法?C# IClientAPI.SendLayerData怎么用?C# IClientAPI.SendLayerData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IClientAPI
的用法示例。
在下文中一共展示了IClientAPI.SendLayerData方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TerrainUnAcked
public void TerrainUnAcked(IClientAPI client, int patchX, int patchY)
{
//m_log.Debug("Terrain packet unacked, resending patch: " + patchX + " , " + patchY);
client.SendLayerData(patchX, patchY, Heightmap.GetFloatsSerialised());
}
示例2: SendLayerData
/// <summary>
/// Send the region heightmap to the client
/// </summary>
/// <param name="RemoteClient">Client to send to</param>
public void SendLayerData(IClientAPI RemoteClient)
{
if (!m_sendTerrainUpdatesByViewDistance && !m_noTerrain)
{
//Default way, send the full terrain at once
RemoteClient.SendLayerData(m_channel.GetSerialized());
}
else
{
//Send only what the client can see,
// but the client isn't loaded yet, wait until they get set up
// The first agent update they send will trigger the DrawDistanceChanged event and send the land
}
}
示例3: client_OnUnackedTerrain
protected void client_OnUnackedTerrain(IClientAPI client, int patchX, int patchY)
{
//m_log.Debug("Terrain packet unacked, resending patch: " + patchX + " , " + patchY);
client.SendLayerData(patchX, patchY, m_channel.GetSerialised(m_scene));
}
示例4: SendLayerData
/// <summary>
/// Send the region heightmap to the client
/// </summary>
/// <param name="RemoteClient">Client to send to</param>
public void SendLayerData(IClientAPI RemoteClient)
{
ScenePresence presence = m_scene.GetScenePresence(RemoteClient.AgentId);
if (!m_sendTerrainUpdatesByViewDistance)
{
//Default way, send the full terrain at once
RemoteClient.SendLayerData(m_channel.GetFloatsSerialised(RemoteClient.Scene));
}
else
{
//Send only what the client can see,
// but the client isn't loaded yet, wait until they get set up
// The first agent update they send will trigger the DrawDistanceChanged event and send the land
}
}
示例5: client_OnUnackedTerrain
protected void client_OnUnackedTerrain(IClientAPI client, int patchX, int patchY)
{
//m_log.Debug("Terrain packet unacked, resending patch: " + patchX + " , " + patchY);
client.SendLayerData(patchX, patchY, m_scene.Heightmap.GetFloatsSerialised());
}
示例6: client_OnUnackedTerrain
protected void client_OnUnackedTerrain(IClientAPI client, int patchX, int patchY)
{
//m_log.Debug("Terrain packet unacked, resending patch: " + patchX + " , " + patchY);
// SendLayerData does not use the heightmap parameter. This kludge is so as to not change IClientAPI.
float[] heightMap = new float[10];
client.SendLayerData(patchX, patchY, heightMap);
}
示例7: SendLayerData
/// <summary>
/// Send the region heightmap to the client
/// </summary>
/// <param name="RemoteClient">Client to send to</param>
public void SendLayerData(IClientAPI RemoteClient)
{
Scene scene = (Scene)RemoteClient.Scene;
RemoteClient.SendLayerData(m_channel.GetFloatsSerialised(scene));
}