Пример #1
0
 public override void LogTransmission(SyncConnector pConnectorContext)
 {
     if (RegionContext != null)
     RegionContext.DetailedUpdateWrite(DetailLogTagSnd, AvatarID, 0, ZeroUUID, pConnectorContext.otherSideActorID, DataLength);
 }
Пример #2
0
 public override void LogTransmission(SyncConnector pConnectorContext)
 {
     if (RegionContext != null)
     RegionContext.DetailedUpdateLogging(Uuid, SyncableProperties, "SendUpdate", pConnectorContext.otherSideActorID, DataLength);
 }
Пример #3
0
 public override void LogReception(RegionSyncModule pRegionContext, SyncConnector pConnectorContext)
 {
     if (RegionContext != null)
     RegionContext.DetailedUpdateWrite(DetailLogTagRcv, AvatarID, 0, ZeroUUID, pConnectorContext.otherSideActorID, DataLength);
 }
Пример #4
0
 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.
 }
Пример #5
0
 // Logs the whole string of parameters received. Only happens once per region connect.
 public override void LogReception(RegionSyncModule pRegionContext, SyncConnector pConnectorContext)
 {
     pRegionContext.DetailedUpdateWrite(DetailLogTagRcv, ZeroUUID, 0, ZeroUUID, DataMap.ToString(), DataLength);
 }
Пример #6
0
        // Given an incoming stream of bytes, create a SyncMsg from the next data on that stream.
        // The input stream should contain:
        //      4 bytes: the msgType code
        //      4 bytes: number of bytes following for the message data
        //      N bytes: the data for this type of messsage
        public static SyncMsg SyncMsgFactory(Stream pStream, SyncConnector pConnectorContext)
        {
            SyncMsg ret = null;

            MsgType mType = (MsgType)Utils.BytesToInt(GetBytesFromStream(pStream, 4));
            int length = Utils.BytesToInt(GetBytesFromStream(pStream, 4));
            byte[] data = GetBytesFromStream(pStream, length);

            switch (mType)
            {
            case MsgType.UpdatedProperties: ret = new SyncMsgUpdatedProperties(length, data);    break;
            case MsgType.GetTerrain:        ret = new SyncMsgGetTerrain(length, data);           break;
            case MsgType.GetObjects:        ret = new SyncMsgGetObjects(length, data);           break;
            case MsgType.GetPresences:      ret = new SyncMsgGetPresences(length, data);         break;
            case MsgType.GetRegionInfo:     ret = new SyncMsgGetRegionInfo(length, data);        break;
            case MsgType.GetEnvironment:    ret = new SyncMsgGetEnvironment(length, data);       break;
            case MsgType.Terrain:           ret = new SyncMsgTerrain(length, data);              break;
            case MsgType.RegionInfo:        ret = new SyncMsgRegionInfo(length, data);           break;
            case MsgType.Environment:       ret = new SyncMsgEnvironment(length, data);          break;
            case MsgType.NewObject:         ret = new SyncMsgNewObject(length, data);            break;
            case MsgType.RemovedObject:     ret = new SyncMsgRemovedObject(length, data);        break;
            case MsgType.LinkObject:        ret = new SyncMsgLinkObject(length, data);           break;
            case MsgType.DelinkObject:      ret = new SyncMsgDelinkObject(length, data);         break;
            case MsgType.NewPresence:       ret = new SyncMsgNewPresence(length, data);          break;
            case MsgType.RemovedPresence:   ret = new SyncMsgRemovedPresence(length, data);      break;
            case MsgType.RegionName:        ret = new SyncMsgRegionName(length, data);           break;
            case MsgType.ActorID:           ret = new SyncMsgActorID(length, data);              break;
            case MsgType.RegionStatus:      ret = new SyncMsgRegionStatus(length, data);         break;

            case MsgType.NewScript:         ret = new SyncMsgNewScript(length, data);            break;
            case MsgType.UpdateScript:      ret = new SyncMsgUpdateScript(length, data);         break;
            case MsgType.ScriptReset:       ret = new SyncMsgScriptReset(length, data);          break;
            case MsgType.ChatFromClient:    ret = new SyncMsgChatFromClient(length, data);       break;
            case MsgType.ChatFromWorld:     ret = new SyncMsgChatFromWorld(length, data);        break;
            case MsgType.ChatBroadcast:     ret = new SyncMsgChatBroadcast(length, data);        break;
            case MsgType.ObjectGrab:        ret = new SyncMsgObjectGrab(length, data);           break;
            case MsgType.ObjectGrabbing:    ret = new SyncMsgObjectGrabbing(length, data);       break;
            case MsgType.ObjectDeGrab:      ret = new SyncMsgObjectDeGrab(length, data);         break;
            case MsgType.Attach:            ret = new SyncMsgAttach(length, data);               break;

            // case MsgType.PhysicsCollision:      ret = new SyncMsgPhysicsCollision(length, data);     break;
            case MsgType.ScriptCollidingStart:  ret = new SyncMsgScriptCollidingStart(length, data); break;
            case MsgType.ScriptColliding:       ret = new SyncMsgScriptColliding(length, data);      break;
            case MsgType.ScriptCollidingEnd:    ret = new SyncMsgScriptCollidingEnd(length, data);   break;
            case MsgType.ScriptLandCollidingStart:ret = new SyncMsgScriptLandCollidingStart(length, data);   break;
            case MsgType.ScriptLandColliding:   ret = new SyncMsgScriptLandColliding(length, data);  break;
            case MsgType.ScriptLandCollidingEnd:ret = new SyncMsgScriptLandCollidingEnd(length, data);   break;

            case MsgType.TimeStamp:         ret = new SyncMsgTimeStamp(length, data);            break;
            // case MsgType.UpdatedBucketProperties: ret = new SyncMsgUpdatedBucketProperties(length, data); break;

            case MsgType.KeepAlive: ret = new SyncMsgKeepAlive(length, data); break;
            default:
                m_log.ErrorFormat("{0}: Unknown Sync Message Type {1}", LogHeader, mType);
                break;
            }

            if (ret != null)
            {
            ret.ConnectorContext = pConnectorContext;
            }

            return ret;
        }
Пример #7
0
 public override void LogReception(RegionSyncModule pRegionContext, SyncConnector pConnectorContext)
 {
     pRegionContext.DetailedUpdateWrite(DetailLogTagRcv, ZeroUUID, pRegionContext.TerrainSyncInfo.LastUpdateTimeStamp, ZeroUUID, pConnectorContext.otherSideActorID, 0);
 }
Пример #8
0
 public override void LogTransmission(SyncConnector pConnectorContext)
 {
     // Suppress automatic logging as message logging is done in RegionSyncModule when more info is known.
 }