本文整理汇总了C#中RegionSyncModule类的典型用法代码示例。如果您正苦于以下问题:C# RegionSyncModule类的具体用法?C# RegionSyncModule怎么用?C# RegionSyncModule使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RegionSyncModule类属于命名空间,在下文中一共展示了RegionSyncModule类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RegionSyncListener
public RegionSyncListener(RegionSyncListenerInfo listenerInfo, RegionSyncModule regionSyncModule)
{
m_listenerInfo = listenerInfo;
m_regionSyncModule = regionSyncModule;
m_log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
}
示例2: ConvertOut
public override bool ConvertOut(RegionSyncModule pRegionContext)
{
lock (m_dataLock)
{
if (Dir == Direction.Out && DataMap == null)
{
DataMap = pRegionContext.InfoManager.EncodeProperties(Uuid, SyncableProperties);
if (DataMap == null)
return false;
// m_log.DebugFormat("{0} SyncMsgUpdatedProperties.ConvertOut, syncProp={1}, DataMap={2}", LogHeader, SyncableProperties, DataMap);
}
}
return base.ConvertOut(pRegionContext);
}
示例3: SyncConnector
/// <summary>
/// The constructor that will be called when a SyncConnector is created passively: a remote SyncConnector has initiated the connection.
/// </summary>
/// <param name="connectorNum"></param>
/// <param name="tcpclient"></param>
public SyncConnector(int connectorNum, TcpClient tcpclient, RegionSyncModule syncModule)
{
m_tcpConnection = tcpclient;
m_connectorNum = connectorNum;
m_regionSyncModule = syncModule;
lastStatTime = DateTime.Now;
m_syncState = SyncConnectorState.Initialization;
m_log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
}
示例4: SyncMsgDelinkObject
public SyncMsgDelinkObject(RegionSyncModule pRegionContext, List<UUID> pDelinkPrimIDs, List<UUID> pBeforeDlinkGroupIDs, List<SceneObjectGroup> pAfterDelinkGroups)
: base(MsgType.DelinkObject, pRegionContext)
{
DelinkPrimIDs = pDelinkPrimIDs;
BeforeDelinkGroupIDs = pBeforeDlinkGroupIDs;
AfterDelinkGroups = pAfterDelinkGroups;
}
示例5: SyncMsgChatFromWorld
public SyncMsgChatFromWorld(RegionSyncModule pRegionContext, OSChatMessage pChatMessage)
: base(MsgType.ChatFromWorld, pRegionContext)
{
ChatMessage = pChatMessage;
}
示例6: HandleIn
public override bool HandleIn(RegionSyncModule pRegionContext)
{
if (base.HandleIn(pRegionContext))
{
m_log.DebugFormat("{0} SyncMsgChatBroadcast: {1} : {2}", LogHeader, ChatMessage.From, ChatMessage.Message);
pRegionContext.RememberLocallyGeneratedEvent(MsgType.ChatBroadcast, ChatMessage);
pRegionContext.Scene.EventManager.TriggerOnChatBroadcast(ChatMessage.SenderObject, ChatMessage);
pRegionContext.ForgetLocallyGeneratedEvent();
}
return true;
}
示例7: ConvertIn
public override bool ConvertIn(RegionSyncModule pRegionContext)
{
bool ret = false;
if (base.ConvertIn(pRegionContext))
{
AgentID = DataMap["agentID"].AsUUID();
ItemID = DataMap["itemID"].AsUUID();
PrimID = DataMap["primID"].AsUUID();
IsRunning = DataMap["running"].AsBoolean();
AssetID = DataMap["assetID"].AsUUID();
ret = true;
}
return ret;
}
示例8: SyncMsgActorID
public SyncMsgActorID(RegionSyncModule pRegionContext, string pActorID)
: base(MsgType.ActorID, pRegionContext)
{
ActorID = pActorID;
}
示例9: SyncMsgUpdateScript
public SyncMsgUpdateScript(RegionSyncModule pRegionContext, UUID pAgentID, UUID pItemID, UUID pPrimID, bool pIsRunning, UUID pAssetID)
: base(MsgType.UpdateScript, pRegionContext)
{
AgentID = pAgentID;
ItemID = pItemID;
PrimID = pPrimID;
IsRunning = pIsRunning;
AssetID = pAssetID;
}
示例10: LogReception
public override void LogReception(RegionSyncModule pRegionContext, SyncConnector pConnectorContext)
{
// This override is here so the reception will not be default logged and the actual logging can occur
// after the properties have been processed.
}
示例11: SyncMsgChatBroadcast
public SyncMsgChatBroadcast(RegionSyncModule pRegionContext, OSChatMessage pChatMessage)
: base(MsgType.ChatBroadcast, pRegionContext)
{
ChatMessage = pChatMessage;
}
示例12: SyncMsgAttach
public SyncMsgAttach(RegionSyncModule pRegionContext, UUID pPrimID, UUID pItemID, UUID pAvatarID)
: base(MsgType.Attach, pRegionContext)
{
PrimID = pPrimID;
ItemID = pItemID;
AvatarID = pAvatarID;
}