本文整理汇总了C#中RegionSyncModule.SendSceneEventToRelevantSyncConnectors方法的典型用法代码示例。如果您正苦于以下问题:C# RegionSyncModule.SendSceneEventToRelevantSyncConnectors方法的具体用法?C# RegionSyncModule.SendSceneEventToRelevantSyncConnectors怎么用?C# RegionSyncModule.SendSceneEventToRelevantSyncConnectors使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RegionSyncModule
的用法示例。
在下文中一共展示了RegionSyncModule.SendSceneEventToRelevantSyncConnectors方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: HandleIn
public override bool HandleIn(RegionSyncModule pRegionContext)
{
bool ret = false;
if (base.HandleIn(pRegionContext))
{
//check if this is a duplicate event message that we have received before
if (pRegionContext.EventRecord.IsSEQReceived(SyncID, SequenceNum))
{
m_log.ErrorFormat("Duplicate event {0} originated from {1}, seq# {2} has been received", MType, SyncID, SequenceNum);
return false;
}
else
{
pRegionContext.EventRecord.RecordEventReceived(SyncID, SequenceNum);
}
// if this is a relay node, forward the message
if (pRegionContext.IsSyncRelay)
{
pRegionContext.SendSceneEventToRelevantSyncConnectors(ConnectorContext.otherSideActorID, this, null);
}
ret = true;
}
return ret;
}