Ejemplo n.º 1
0
    // Token: 0x06000DF8 RID: 3576 RVA: 0x00163F68 File Offset: 0x00162168
    public void Recv_MSG_RESP_ALLIANCEMOBILIZATION_MISSION_UPDATE(MessagePacket MP)
    {
        this.mMissionTarget = MP.ReadUInt(-1);
        GUIManager.Instance.UpdateUI(EGUIWindow.UI_Alliance_Mobilization, 7, 0);
        MobilizationMissionData recordByKey = DataManager.Instance.AllianceMobilizationMission.GetRecordByKey(this.mMissionID);

        if (this.mMissionTarget == recordByKey.MissionMaxValue[(int)this.mMissionDifficulty])
        {
            this.mMissionStatus = 1;
            DataManager.Instance.SetQueueBarData(EQueueBarIndex.Mobilization, true, 0L, 0u);
            GUIManager.Instance.UpdateUI(EGUIWindow.UI_Alliance_Mobilization, 8, 0);
            GUIManager.Instance.AddHUDMessage(DataManager.Instance.mStringTable.GetStringByID(1361u), 255, true);
            ActivityManager.Instance.CheckAMShowHint();
        }
    }
Ejemplo n.º 2
0
    // Token: 0x06000DF3 RID: 3571 RVA: 0x00163AA8 File Offset: 0x00161CA8
    public void Recv_MSG_RESP_ALLIANCEMOBLIZATION_MISSION_GET(MessagePacket MP)
    {
        byte b = MP.ReadByte(-1);

        if (b != 255)
        {
            GUIManager.Instance.HideUILock(EUILock.AllianceMobilization);
        }
        byte b2 = b;

        if (b2 != 0)
        {
            if (b2 != 4)
            {
                if (b2 == 255)
                {
                    this.mMissionID         = MP.ReadUShort(-1);
                    this.mMissionDifficulty = MP.ReadByte(-1);
                    this.mMissionDifficulty = (byte)Mathf.Clamp((int)this.mMissionDifficulty, 0, 3);
                    this.availableMission   = MP.ReadByte(-1);
                    this.mMissionTime       = MP.ReadLong(-1);
                    this.mMissionTarget     = MP.ReadUInt(-1);
                    this.mMissionStart      = MP.ReadLong(-1);
                    if (this.mMissionID != 0)
                    {
                        DataManager.Instance.SetQueueBarData(EQueueBarIndex.Mobilization, true, this.mMissionStart, (uint)(this.mMissionTime - this.mMissionStart));
                        DataManager.Instance.SetRecvQueueBarData(32);
                    }
                    else
                    {
                        DataManager.Instance.SetQueueBarData(EQueueBarIndex.Mobilization, false, 0L, 0u);
                    }
                    this.mMissionStatus = 0;
                    MobilizationMissionData recordByKey = DataManager.Instance.AllianceMobilizationMission.GetRecordByKey(this.mMissionID);
                    if (recordByKey.MissionMaxValue != null && this.mMissionTarget == recordByKey.MissionMaxValue[(int)this.mMissionDifficulty])
                    {
                        this.mMissionStatus = 1;
                        GUIManager.Instance.UpdateUI(EGUIWindow.UI_Alliance_Mobilization, 8, 0);
                        ActivityManager.Instance.CheckAMShowHint();
                    }
                    else if (this.mMissionID != 0 && this.mMissionStatus == 0 && this.mMissionTime - DataManager.Instance.ServerTime < 0L)
                    {
                        this.mMissionStatus = 2;
                        GUIManager.Instance.UpdateUI(EGUIWindow.UI_Alliance_Mobilization, 8, 0);
                        ActivityManager.Instance.CheckAMShowHint();
                    }
                }
            }
            else
            {
                GUIManager.Instance.AddHUDMessage(DataManager.Instance.mStringTable.GetStringByID(1344u), 255, true);
            }
        }
        else
        {
            AudioManager.Instance.PlayUISFX(UIKind.ItemUse);
            this.mMissionID         = MP.ReadUShort(-1);
            this.mMissionDifficulty = MP.ReadByte(-1);
            this.mMissionDifficulty = (byte)Mathf.Clamp((int)this.mMissionDifficulty, 0, 3);
            this.availableMission   = MP.ReadByte(-1);
            this.mMissionStatus     = 0;
            this.mMissionTime       = MP.ReadLong(-1);
            this.mMissionTarget     = MP.ReadUInt(-1);
            DataManager.Instance.SetQueueBarData(EQueueBarIndex.Mobilization, true, DataManager.Instance.ServerTime, (uint)(this.mMissionTime - DataManager.Instance.ServerTime));
            DataManager.Instance.SetRecvQueueBarData(32);
            GUIManager.Instance.UpdateUI(EGUIWindow.UI_Alliance_Mobilization, 9, 0);
            FBAdvanceManager.Instance.TriggerFbUniqueEvent(EFBEvent.FIRST_GUILD_FEST_QUEST);
        }
    }