Beispiel #1
0
    private void OnAck_NotifyIntoScene(MessageRecv obj)
    {
        System.IO.MemoryStream ms  = new System.IO.MemoryStream(obj.Data);
        NotifyIntoScene        ack = Serializer.Deserialize <NotifyIntoScene>(ms);
        EnterSceneReq          req = new EnterSceneReq();

        req.RoleID = ack.RoleID;
        NetworkManager.Instance.Send(MessageID.MSG_ENTER_SCENE_REQ, req, (UInt64)ack.CopyID, (UInt32)ack.ServerID);
    }
Beispiel #2
0
    //进入副本场景或者主城场景
    public void TryEnterScene(UInt64 roleID, UInt32 CopyID, UInt32 ServerID)
    {
        EnterSceneReq req = new EnterSceneReq();

        req.RoleID   = roleID;
        req.CopyID   = CopyID;
        req.ServerID = ServerID;
        NetworkManager.Instance.Send(MessageID.MSG_ENTER_SCENE_REQ, req, (UInt64)CopyID, (UInt32)ServerID);
    }
Beispiel #3
0
    private void OnReq_EnterScene(MessageRecv obj)
    {
        System.IO.MemoryStream ms  = new System.IO.MemoryStream(obj.Data);
        EnterSceneReq          req = Serializer.Deserialize <EnterSceneReq>(ms);
        EnterSceneAck          ack = new EnterSceneAck();

        ack.CopyID   = req.CopyID;
        ack.CopyGuid = req.CopyGuid;
        ack.Carrer   = GTGlobal.CurPlayerCarrerID;
        ack.ActorID  = ReadCfgActor.GetDataById(GTGlobal.CurPlayerCarrerID).Id;
        NetworkManager.Instance.Send(MessageID.MSG_ENTER_SCENE_ACK, ack, 0, 0);
    }