Example #1
0
 public override bool HandleIn(RegionSyncModule pRegionContext)
 {
     if (base.HandleIn(pRegionContext))
     {
     EntityBase[] entities = pRegionContext.Scene.GetEntities();
     foreach (EntityBase e in entities)
     {
         ScenePresence sp = e as ScenePresence;
         if (sp != null)
         {
             // This will sync the appearance that's currently in the agent circuit data.
             // If the avatar has updated their appearance since they connected, the original data will still be in ACD.
             // The ACD normally only gets updated when an avatar is moving between regions.
             SyncMsgNewPresence msg = new SyncMsgNewPresence(pRegionContext, sp);
             msg.ConvertOut(pRegionContext);
             // m_log.DebugFormat("{0}: Send NewPresence message for {1} ({2})", LogHeader, sp.Name, sp.UUID);
             ConnectorContext.ImmediateOutgoingMsg(msg);
         }
     }
     }
     return true;
 }