本文整理汇总了C#中IScenePresence.AddUpdateToAvatar方法的典型用法代码示例。如果您正苦于以下问题:C# IScenePresence.AddUpdateToAvatar方法的具体用法?C# IScenePresence.AddUpdateToAvatar怎么用?C# IScenePresence.AddUpdateToAvatar使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IScenePresence
的用法示例。
在下文中一共展示了IScenePresence.AddUpdateToAvatar方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ScheduleUpdateToAvatar
/// <summary>
/// Tell a specific avatar about the update
/// </summary>
/// <param name="UpdateFlags"></param>
/// <param name="avatar"></param>
public void ScheduleUpdateToAvatar (PrimUpdateFlags UpdateFlags, IScenePresence avatar)
{
if (!IsTerse(UpdateFlags) || ShouldScheduleUpdate(UpdateFlags))
avatar.AddUpdateToAvatar (this, UpdateFlags);
}
示例2: ScheduleGroupUpdateToAvatar
/// <summary>
/// Send an update to all prims in the group to a specific avatar
/// </summary>
/// <param name = "presence"></param>
/// <param name = "UpdateFlags"></param>
public void ScheduleGroupUpdateToAvatar(IScenePresence presence, PrimUpdateFlags UpdateFlags)
{
//We have to send the root part first as the client wants it that way
presence.AddUpdateToAvatar(RootPart, UpdateFlags);
#if (!ISWIN)
foreach (SceneObjectPart part in m_partsList)
{
if (part != RootPart)
{
presence.AddUpdateToAvatar(part, UpdateFlags);
}
}
#else
foreach (SceneObjectPart part in m_partsList.Where(part => part != RootPart))
{
presence.AddUpdateToAvatar(part, UpdateFlags);
}
#endif
}
示例3: ScheduleUpdateToAvatar
/// <summary>
/// Tell a specific avatar about the update
/// </summary>
/// <param name="UpdateFlags"></param>
/// <param name="avatar"></param>
public void ScheduleUpdateToAvatar (PrimUpdateFlags UpdateFlags, IScenePresence avatar)
{
PrimUpdateFlags PostUpdateFlags;
if (ShouldScheduleUpdate(UpdateFlags, out PostUpdateFlags))
{
avatar.AddUpdateToAvatar(this, PostUpdateFlags);
}
}