예제 #1
0
    // Token: 0x06000113 RID: 275 RVA: 0x0001263C File Offset: 0x0001083C
    public void Send_MSG_REQUEST_ALLIANCEWAR_COMBAT_REPORT(byte MatchID, byte CombatID)
    {
        MessagePacket messagePacket = new MessagePacket(1024);

        messagePacket.Protocol = Protocol._MSG_REQUEST_ALLIANCEWAR_COMBAT_REPORT;
        messagePacket.AddSeqId();
        messagePacket.Add(MatchID);
        messagePacket.Add(CombatID);
        messagePacket.Send(false);
        GUIManager.Instance.ShowUILock(EUILock.AllianceWar_Fs);
    }
예제 #2
0
    // Token: 0x06002879 RID: 10361 RVA: 0x00447074 File Offset: 0x00445274
    public void BindingPlatform(byte Type, string Name, string Key)
    {
        GUIManager.Instance.ShowUILock(EUILock.Mission);
        MessagePacket messagePacket = new MessagePacket(1024);

        messagePacket.Protocol = Protocol._MSG_REQUEST_BINDING_PLATFORM;
        messagePacket.AddSeqId();
        messagePacket.Add(Type);
        messagePacket.Add(Name, 41);
        messagePacket.Add(Key, 255);
        messagePacket.Send(false);
    }
예제 #3
0
    // Token: 0x06000111 RID: 273 RVA: 0x00012480 File Offset: 0x00010680
    public void Send_MSG_REQUEST_ALLIANCEWAR_MATCH_PLAYERDATA(byte MatchID, byte Side, byte Position)
    {
        MessagePacket messagePacket = new MessagePacket(1024);

        messagePacket.Protocol = Protocol._MSG_REQUEST_ALLIANCEWAR_MATCH_PLAYERDATA;
        messagePacket.AddSeqId();
        messagePacket.Add(MatchID);
        messagePacket.Add(Side);
        messagePacket.Add(Position);
        messagePacket.Send(false);
        Array.Clear(this.m_AllianceWarHintData.HeroData, 0, this.m_AllianceWarHintData.HeroData.Length);
        Array.Clear(this.m_AllianceWarHintData.TroopData, 0, this.m_AllianceWarHintData.TroopData.Length);
    }
예제 #4
0
    // Token: 0x060011AC RID: 4524 RVA: 0x001EE298 File Offset: 0x001EC498
    public void SendFootBall_Skill(ushort zoneID, byte pointID, ushort skill_id, byte direction)
    {
        GUIManager.Instance.ShowUILock(EUILock.FootBallSkill);
        MessagePacket messagePacket = new MessagePacket(1024);

        messagePacket.Protocol = Protocol._MSG_REQUEST_FOOTBALL_SKILL_USE;
        messagePacket.AddSeqId();
        messagePacket.Add(zoneID);
        messagePacket.Add(pointID);
        messagePacket.Add(skill_id);
        messagePacket.Add(direction);
        messagePacket.Send(false);
    }
예제 #5
0
 // Token: 0x06001AEA RID: 6890 RVA: 0x002DABB0 File Offset: 0x002D8DB0
 public void SendPackage()
 {
     if (this.OpenType == 1)
     {
         Door door = this.GM.FindMenu(EGUIWindow.Door) as Door;
         if (door && door.m_GroundInfo != null)
         {
             MessagePacket messagePacket = new MessagePacket(1024);
             messagePacket.Protocol = Protocol._MSG_REQUEST_MAP_EMOTION;
             messagePacket.AddSeqId();
             messagePacket.Add(DataManager.MapDataController.FocusKingdomID);
             if (door.m_GroundInfo.m_TeamPanelGameObject.activeSelf)
             {
                 messagePacket.Add(13);
                 if (door.m_GroundInfo.m_MapPointID >= 0 && door.m_GroundInfo.m_MapPointID < DataManager.MapDataController.MapLineTable.Count)
                 {
                     MapLine mapLine = DataManager.MapDataController.MapLineTable[door.m_GroundInfo.m_MapPointID];
                     messagePacket.Add(mapLine.lineID);
                 }
             }
             else
             {
                 if (door.m_GroundInfo.m_MapPointID >= 0 && door.m_GroundInfo.m_MapPointID < DataManager.MapDataController.LayoutMapInfo.Length)
                 {
                     MapPoint mapPoint = DataManager.MapDataController.LayoutMapInfo[(int)((UIntPtr)door.m_GroundInfo.m_MapPointID)];
                     messagePacket.Add(mapPoint.pointKind);
                 }
                 ushort data;
                 byte   data2;
                 GameConstants.MapIDToPointCode(door.m_GroundInfo.m_MapPointID, out data, out data2);
                 messagePacket.Add(0);
                 messagePacket.Add(data);
                 messagePacket.Add(data2);
             }
             messagePacket.Add(this.GetEmojiKey(this.GM.EmojiNowPackageIndex, (int)this.GM.EmojiNowPicIndex));
             messagePacket.Add(this.DM.TotalShopItemData.Find(this.ItemID));
             messagePacket.Send(false);
             this.SendChangeSave(this.GM.EmojiNowPackageIndex);
             if (this.DM.GetCurItemQuantity(this.ItemID, 0) <= 0)
             {
                 this.DM.SetBuyAndUse(1);
             }
             if (!door.m_GroundInfo.m_TeamPanelGameObject.activeSelf)
             {
                 door.m_GroundInfo.Close();
             }
             this.GM.CloseMenu(EGUIWindow.UIEmojiSelect);
         }
     }
     else if (this.OpenType == 2)
     {
         this.GM.UpdateUI(EGUIWindow.UI_Chat, 15, (int)this.GetEmojiKey(this.GM.EmojiNowPackageIndex, (int)this.GM.EmojiNowPicIndex));
         this.SendChangeSave(this.GM.EmojiNowPackageIndex);
         this.GM.CloseMenu(EGUIWindow.UIEmojiSelect);
     }
 }
예제 #6
0
    // Token: 0x060010A7 RID: 4263 RVA: 0x001D8DA0 File Offset: 0x001D6FA0
    public void SendArena_Challenge(byte TargetIdx)
    {
        GUIManager.Instance.ShowUILock(EUILock.Arena);
        MessagePacket messagePacket = new MessagePacket(1024);

        messagePacket.Protocol = Protocol._MSG_REQUEST_ARENA_CHALLENGE;
        messagePacket.AddSeqId();
        messagePacket.Add(TargetIdx);
        messagePacket.Add(this.m_ArenaTarget[(int)TargetIdx].Place);
        messagePacket.Add(this.m_ArenaTarget[(int)TargetIdx].Name, 13);
        for (int i = 0; i < 5; i++)
        {
            messagePacket.Add(this.m_ArenaTargetHero[i]);
        }
        messagePacket.Send(false);
    }
예제 #7
0
 // Token: 0x06001D27 RID: 7463 RVA: 0x003449E8 File Offset: 0x00342BE8
 public override void OnOKCancelBoxClick(bool bOK, int arg1, int arg2)
 {
     this.openOkBox = false;
     if (bOK)
     {
         if (arg1 != 0)
         {
             if (arg1 == 1)
             {
                 Debug.Log("賞金:" + this.MoneyAmount);
                 MessagePacket messagePacket = new MessagePacket(1024);
                 messagePacket.Protocol = Protocol._MSG_REQUEST_CHANGE_BOUNTY;
                 messagePacket.AddSeqId();
                 messagePacket.Add(this.MoneyAmount);
                 messagePacket.Send(false);
                 GUIManager.Instance.CloseMenu(EGUIWindow.UI_JailMoney);
             }
         }
         else
         {
             Debug.Log("贖金:" + this.MoneyAmount);
             MessagePacket messagePacket2 = new MessagePacket(1024);
             messagePacket2.Protocol = Protocol._MSG_REQUEST_CHANGE_RANSOM;
             messagePacket2.AddSeqId();
             messagePacket2.Add(this.PrisonerDMIdx);
             messagePacket2.Add(this.MoneyAmount);
             messagePacket2.Send(false);
             GUIManager.Instance.CloseMenu(EGUIWindow.UI_JailMoney);
         }
     }
 }
예제 #8
0
 // Token: 0x060020EC RID: 8428 RVA: 0x003E8BEC File Offset: 0x003E6DEC
 public void ButtonOnClick(GameObject gameObject, int dataIndex, int panelId)
 {
     if (this.DM.m_WatchTowerData.Count > 0 && dataIndex > -1 && dataIndex < this.DM.m_WatchTowerData.Count)
     {
         if (this.DM.m_WatchTowerData[dataIndex].LineType > 0)
         {
             if (this.mBD.Level >= 4)
             {
                 if (this.GUIM.ShowUILock(EUILock.WatchTower))
                 {
                     MessagePacket messagePacket = new MessagePacket(1024);
                     messagePacket.Protocol = Protocol._MSG_REQUEST_WATCHTOWER_LINEDETAIL;
                     messagePacket.AddSeqId();
                     messagePacket.Add(this.DM.tmp_WatchTowerData[(int)this.DM.m_WatchTowerData[dataIndex].ListIdx].LineID);
                     messagePacket.Send(false);
                     this.DM.m_WTList_Idx = dataIndex;
                 }
             }
             else
             {
                 this.DM.m_WTList_Idx = dataIndex;
                 this.door.OpenMenu(EGUIWindow.UI_Watchtower_Details, (int)this.DM.m_WatchTowerData[dataIndex].LineType, (int)this.mBD.Level, false);
             }
         }
         else
         {
             int num = (int)(this.DM.m_WatchTowerData[dataIndex].ListIdx - 1u);
             this.door.GoToPointCode(DataManager.MapDataController.OtherKingdomData.kingdomID, this.DM.MarchEventData[num].Point.zoneID, this.DM.MarchEventData[num].Point.pointID, 0);
         }
     }
 }
예제 #9
0
 // Token: 0x06001E9E RID: 7838 RVA: 0x003A8010 File Offset: 0x003A6210
 public void SendHelp()
 {
     if (this.GM.ShowUILock(EUILock.Scout))
     {
         MessagePacket messagePacket = new MessagePacket(1024);
         messagePacket.Protocol = Protocol._MSG_REQUEST_SEND_RESHELP;
         messagePacket.AddSeqId();
         messagePacket.Add(this.DesPoint.zoneID);
         messagePacket.Add(this.DesPoint.pointID);
         for (int i = 0; i < 5; i++)
         {
             this.GM.m_SendResource[i] = (uint)this.lSendResource[i];
             messagePacket.Add(this.GM.m_SendResource[i]);
         }
         messagePacket.Send(false);
     }
 }
예제 #10
0
 // Token: 0x0600257D RID: 9597 RVA: 0x0042BA58 File Offset: 0x00429C58
 public bool View(ushort Id, bool Force = false)
 {
     if (NetworkPeeper.Stage < LoginPhase.LP_Connecting || NetworkPeeper.Stage > LoginPhase.LP_Logging || Force)
     {
         this.Drop(false);
         this.ID             = Id;
         NetworkPeeper.Stage = LoginPhase.LP_Connecting;
         this.ConnectTime    = 15f;
         MessagePacket messagePacket = new MessagePacket(1024);
         messagePacket.Protocol = Protocol._MSG_GUESTLOGIN_REQUESTIPTOP;
         messagePacket.AddSeqId();
         messagePacket.Add(Id);
         messagePacket.Add(NetworkManager.UDID, NetworkManager.UDID.Length);
         return(messagePacket.Send(false));
     }
     return(false);
 }
예제 #11
0
    // Token: 0x06000216 RID: 534 RVA: 0x0001D0C8 File Offset: 0x0001B2C8
    private void sendModifyBookMark_Alliance(byte ID, string Name)
    {
        if (DataManager.Instance.RoleAlliance.Id == 0u || DataManager.Instance.RoleAlliance.Rank < AllianceRank.RANK4)
        {
            GUIManager.Instance.AddHUDMessage(DataManager.Instance.mStringTable.GetStringByID(4753u), 255, true);
            return;
        }
        if (!GUIManager.Instance.ShowUILock(EUILock.BookMark))
        {
            return;
        }
        MessagePacket messagePacket = new MessagePacket(1024);

        messagePacket.Protocol = Protocol._MSG_REQUEST_ALLIANCE_MODIFYBOOKMARK;
        CString cstring = StringManager.Instance.StaticString1024();

        cstring.Append(Name);
        cstring.SetLength(cstring.Length);
        byte[] bytes = Encoding.UTF8.GetBytes(cstring.ToString());
        byte   b     = (byte)Math.Min(bytes.Length, (int)this.NameSize);

        cstring.SetLength(cstring.MaxLength);
        messagePacket.AddSeqId();
        messagePacket.Add(1);
        messagePacket.Add(ID -= 1);
        messagePacket.Add(b);
        messagePacket.Add(this.AllAllianceData[(int)ID].KingdomID);
        messagePacket.Add(this.AllAllianceData[(int)ID].KingdomPoint.zoneID);
        messagePacket.Add(this.AllAllianceData[(int)ID].KingdomPoint.pointID);
        messagePacket.Add(bytes, 0, (int)b);
        messagePacket.Send(false);
    }
예제 #12
0
    // Token: 0x060012E1 RID: 4833 RVA: 0x0020EEA8 File Offset: 0x0020D0A8
    public void Send_MSG_REQUEST_FEDERAL_HISTORYKINGDATA(byte WonderID)
    {
        MessagePacket messagePacket = new MessagePacket(1024);

        messagePacket.Protocol = Protocol._MSG_REQUEST_FEDERAL_HISTORYKINGDATA;
        messagePacket.AddSeqId();
        messagePacket.Add(WonderID);
        messagePacket.Send(false);
    }
예제 #13
0
    // Token: 0x06001451 RID: 5201 RVA: 0x00239DA8 File Offset: 0x00237FA8
    public void SendFriend_SocialInfo(byte serialno)
    {
        MessagePacket messagePacket = new MessagePacket(1024);

        messagePacket.Protocol = Protocol._MSG_REQUEST_FRIEND_USER_INFO;
        messagePacket.AddSeqId();
        messagePacket.Add(serialno);
        messagePacket.Send(false);
    }
예제 #14
0
    // Token: 0x06000F46 RID: 3910 RVA: 0x001B097C File Offset: 0x001AEB7C
    public override void OnOKCancelBoxClick(bool bOK, int arg1, int arg2)
    {
        if (bOK)
        {
            switch (arg1)
            {
            case 1:
                this.GUIM.OpenOKCancelBox(this, this.DM.mStringTable.GetStringByID(523u), this.DM.mStringTable.GetStringByID(527u), 2, 0, null, null);
                break;

            case 2:
                this.SetDisbandShow(true);
                break;

            case 3:
            {
                byte data = 1;
                if (GUIManager.Instance.ShowUILock(EUILock.Alliance_Manage))
                {
                    MessagePacket messagePacket = new MessagePacket(1024);
                    messagePacket.Protocol = Protocol._MSG_REQUEST_ALLIANCE_QUIT;
                    messagePacket.AddSeqId();
                    messagePacket.Add(data);
                    messagePacket.Send(false);
                }
                break;
            }

            case 4:
                this.GUIM.OpenOKCancelBox(this, this.DM.mStringTable.GetStringByID(508u), this.DM.mStringTable.GetStringByID(509u), 3, 0, null, null);
                break;

            case 6:
                if (this.DM.RoleAttr.Diamond >= 1000u)
                {
                    GUIManager.Instance.ShowUILock(EUILock.AllianceChangHomeKingdom);
                    MessagePacket messagePacket2 = new MessagePacket(1024);
                    messagePacket2.Protocol = Protocol._MSG_REQUEST_ALLIANCE_CHANGE_HOMEKINGDOM;
                    messagePacket2.AddSeqId();
                    messagePacket2.Send(false);
                }
                else
                {
                    this.GUIM.OpenMessageBox(this.DM.mStringTable.GetStringByID(3966u), this.DM.mStringTable.GetStringByID(646u), this.DM.mStringTable.GetStringByID(3968u), this, 7, 0, true, false, false, false, false);
                }
                break;

            case 7:
                MallManager.Instance.Send_Mall_Info();
                break;

            case 8:
                this.GUIM.OpenOKCancelBox(this, this.DM.mStringTable.GetStringByID(505u), this.DM.mStringTable.GetStringByID(506u), 4, 0, this.DM.mStringTable.GetStringByID(507u), this.DM.mStringTable.GetStringByID(4773u));
                break;
            }
        }
    }
예제 #15
0
    // Token: 0x06002BC3 RID: 11203 RVA: 0x00482674 File Offset: 0x00480874
    public override void SendImmediate()
    {
        if (DataManager.MissionDataManager.TimerMissionData[0].ProcessIdx == 255)
        {
            return;
        }
        if (!GUIManager.Instance.ShowUILock(EUILock.Mission))
        {
            return;
        }
        MessagePacket messagePacket = new MessagePacket(1024);

        messagePacket.Protocol = Protocol._MSG_REQUEST_MISSION_BOOST;
        messagePacket.AddSeqId();
        messagePacket.Add(1);
        messagePacket.Add(DataManager.MissionDataManager.TimerMissionData[0].ProcessIdx + 1);
        messagePacket.Send(false);
    }
예제 #16
0
    // Token: 0x06000FC2 RID: 4034 RVA: 0x001B94D4 File Offset: 0x001B76D4
    public override void KickMember(ushort Index, byte WonderID)
    {
        MessagePacket messagePacket = new MessagePacket(1024);

        messagePacket.AddSeqId();
        messagePacket.Protocol = Protocol._MSG_REQUEST_KICK_RALLYMEMBER;
        messagePacket.Add(Index);
        messagePacket.Send(false);
    }
예제 #17
0
    // Token: 0x06000FCC RID: 4044 RVA: 0x001BAF10 File Offset: 0x001B9110
    public override void KickMember(ushort Index, byte WonderID)
    {
        MessagePacket messagePacket = new MessagePacket(1024);

        messagePacket.AddSeqId();
        if (WonderID == 255)
        {
            messagePacket.Protocol = Protocol._MSG_REQUEST_KICK_INFORCEMEMBER;
            messagePacket.Add(Index);
        }
        else
        {
            messagePacket.Protocol = Protocol._MSG_REQUEST_KICK_WONDERMEMBER;
            messagePacket.Add(WonderID);
            messagePacket.Add(Index);
        }
        messagePacket.Send(false);
    }
예제 #18
0
 // Token: 0x060016AD RID: 5805 RVA: 0x00271C24 File Offset: 0x0026FE24
 public static void onFinish()
 {
     if (UIPetSkill.nowPetId > 0 && UIPetSkill.nowSkillId > 0)
     {
         ushort data;
         byte   data2;
         GameConstants.MapIDToPointCode(UIPetSkill.nowMapPoint, out data, out data2);
         GUIManager.Instance.ShowUILock(EUILock.PetSkill);
         MessagePacket messagePacket = new MessagePacket(1024);
         messagePacket.Protocol = Protocol._MSG_REQUEST_PETSKILL_USE;
         messagePacket.AddSeqId();
         messagePacket.Add(data);
         messagePacket.Add(data2);
         messagePacket.Add(UIPetSkill.nowPetId);
         messagePacket.Add(UIPetSkill.nowSkillId);
         messagePacket.Send(false);
         UIPetSkill.nowMapPoint = (int)(UIPetSkill.nowPetId = 0);
     }
 }
예제 #19
0
    // Token: 0x06001417 RID: 5143 RVA: 0x00234740 File Offset: 0x00232940
    public void SendReQusetBlackMarket_Lock(byte mlock)
    {
        GUIManager.Instance.ShowUILock(EUILock.BlackMarket);
        MessagePacket messagePacket = new MessagePacket(1024);

        messagePacket.Protocol = Protocol._MSG_REQUEST_BLACKMARKET_LOCK;
        messagePacket.AddSeqId();
        messagePacket.Add(mlock);
        messagePacket.Send(false);
    }
예제 #20
0
    // Token: 0x06001415 RID: 5141 RVA: 0x002345C4 File Offset: 0x002327C4
    public void SendReQusetBlackMarket_Data()
    {
        GUIManager.Instance.ShowUILock(EUILock.BlackMarket);
        MessagePacket messagePacket = new MessagePacket(1024);

        messagePacket.Protocol = Protocol._MSG_REQUSET_BLACKMARKET_DATA;
        messagePacket.AddSeqId();
        messagePacket.Add(1);
        messagePacket.Send(false);
    }
예제 #21
0
    // Token: 0x06000211 RID: 529 RVA: 0x0001CCCC File Offset: 0x0001AECC
    private void sendAddBookMark_Alliance(string Name, ushort KingdomID, int MapPointID)
    {
        StringTable mStringTable = DataManager.Instance.mStringTable;
        DataManager instance     = DataManager.Instance;

        if (instance.RoleAlliance.Id == 0u || instance.RoleAlliance.Rank < AllianceRank.RANK4)
        {
            GUIManager.Instance.AddHUDMessage(mStringTable.GetStringByID(4753u), 255, true);
            return;
        }
        ushort num = this.GetBookMarkID(MapPointID, KingdomID, BookMark.eBookType.Alliance);

        if (num > 0)
        {
            ushort num2 = num;
            num = num2 - 1;
            this.OverWriteID   = num2;
            this.OverWriteType = 3;
            this.OverWriteName = Name;
            this.MessageStr.ClearString();
            this.MessageStr.StringToFormat(this.AllAllianceData[(int)num].Name);
            this.MessageStr.AppendFormat(mStringTable.GetStringByID(12633u));
            GUIManager.Instance.OpenOKCancelBox(5, mStringTable.GetStringByID(12632u), this.MessageStr.ToString(), 0, 0, mStringTable.GetStringByID(4599u), null);
            return;
        }
        if (this.AllianceBookCount == 20)
        {
            GUIManager.Instance.OpenMessageBox(mStringTable.GetStringByID(4826u), mStringTable.GetStringByID(12634u), null, null, 0, 0, false, false, false, false, false);
            return;
        }
        if (!GUIManager.Instance.ShowUILock(EUILock.BookMark))
        {
            return;
        }
        MessagePacket messagePacket = new MessagePacket(1024);

        messagePacket.Protocol = Protocol._MSG_REQUEST_ALLIANCE_MODIFYBOOKMARK;
        PointCode pointCode;

        GameConstants.MapIDToPointCode(MapPointID, out pointCode.zoneID, out pointCode.pointID);
        CString cstring = StringManager.Instance.StaticString1024();

        cstring.Append(Name);
        cstring.SetLength(cstring.Length);
        byte[] bytes = Encoding.UTF8.GetBytes(cstring.ToString());
        byte   b     = (byte)Math.Min(bytes.Length, (int)this.NameSize);

        cstring.SetLength(cstring.MaxLength);
        messagePacket.AddSeqId();
        messagePacket.Add(0);
        messagePacket.Add((byte)(this.GetEmptyID(BookMark.eBookType.Alliance) - 1));
        messagePacket.Add(b);
        messagePacket.Add(KingdomID);
        messagePacket.Add(pointCode.zoneID);
        messagePacket.Add(pointCode.pointID);
        messagePacket.Add(bytes, 0, (int)b);
        messagePacket.Send(false);
    }
예제 #22
0
    // Token: 0x06000214 RID: 532 RVA: 0x0001CFA4 File Offset: 0x0001B1A4
    public void sendDelBookMark_Alliance(byte ID)
    {
        if (DataManager.Instance.RoleAlliance.Id == 0u || DataManager.Instance.RoleAlliance.Rank < AllianceRank.RANK4)
        {
            GUIManager.Instance.AddHUDMessage(DataManager.Instance.mStringTable.GetStringByID(4753u), 255, true);
            return;
        }
        if (!GUIManager.Instance.ShowUILock(EUILock.BookMark))
        {
            return;
        }
        MessagePacket messagePacket = new MessagePacket(1024);

        messagePacket.Protocol = Protocol._MSG_REQUEST_ALLIANCE_REMOVEBOOKMARK;
        messagePacket.AddSeqId();
        messagePacket.Add(0);
        messagePacket.Add(ID -= 1);
        messagePacket.Send(false);
    }
예제 #23
0
    // Token: 0x06000DF4 RID: 3572 RVA: 0x00163D50 File Offset: 0x00161F50
    public void Send_MSG_REQUEST_ALLIANCEMOBLIZATION_MISSION_DEL(byte MissionPos)
    {
        GUIManager.Instance.ShowUILock(EUILock.AllianceMobilization);
        MessagePacket messagePacket = new MessagePacket(1024);

        messagePacket.Protocol = Protocol._MSG_REQUEST_ALLIANCEMOBLIZATION_MISSION_DEL;
        messagePacket.AddSeqId();
        messagePacket.Add(MissionPos);
        messagePacket.Send(false);
    }
예제 #24
0
 // Token: 0x06001072 RID: 4210 RVA: 0x001D569C File Offset: 0x001D389C
 public void SendAmbushReturn(byte TroopIndex)
 {
     if (GUIManager.Instance.ShowUILock(EUILock.Ambush))
     {
         MessagePacket messagePacket = new MessagePacket(1024);
         messagePacket.Protocol = Protocol._MSG_REQUEST_AMBUSH_RETURN;
         messagePacket.AddSeqId();
         messagePacket.Add(TroopIndex);
         messagePacket.Send(false);
     }
 }
예제 #25
0
 // Token: 0x0600106F RID: 4207 RVA: 0x001D4F50 File Offset: 0x001D3150
 public void SendAmbush(ushort[] Leader, uint[] TroopData)
 {
     if (GUIManager.Instance.ShowUILock(EUILock.Ambush))
     {
         MessagePacket messagePacket = new MessagePacket(1024);
         messagePacket.Protocol = Protocol._MSG_REQUEST_SEND_AMBUSH;
         messagePacket.AddSeqId();
         for (int i = 0; i < Leader.Length; i++)
         {
             messagePacket.Add(Leader[i]);
         }
         for (int j = 0; j < TroopData.Length; j++)
         {
             messagePacket.Add(TroopData[j]);
         }
         messagePacket.Add(this.ObjPoint.zoneID);
         messagePacket.Add(this.ObjPoint.pointID);
         messagePacket.Send(false);
     }
 }
예제 #26
0
 // Token: 0x0600106D RID: 4205 RVA: 0x001D4D30 File Offset: 0x001D2F30
 public void SendAllyAmbushInfo(string name)
 {
     if (GUIManager.Instance.ShowUILock(EUILock.Ambush))
     {
         MessagePacket messagePacket = new MessagePacket(1024);
         messagePacket.Protocol = Protocol._MSG_REQUEST_ALLY_AMBUSH_INFO;
         messagePacket.AddSeqId();
         messagePacket.Add(name, 13);
         messagePacket.Send(false);
     }
 }
예제 #27
0
 // Token: 0x06001F83 RID: 8067 RVA: 0x003C2458 File Offset: 0x003C0658
 public static void SendRefresh()
 {
     if (GUIManager.Instance.ShowUILock(EUILock.LordInfo))
     {
         MessagePacket messagePacket = new MessagePacket(1024);
         messagePacket.Protocol = Protocol._MSG_REQUEST_SUICIDENUM_BY_POWER_BOARD;
         messagePacket.AddSeqId();
         messagePacket.Add(DataManager.Instance.RoleAttr.Power);
         messagePacket.Send(false);
     }
 }
예제 #28
0
    // Token: 0x06000215 RID: 533 RVA: 0x0001D04C File Offset: 0x0001B24C
    public void sendModifyBookMark(ushort ID, byte Type, string Name)
    {
        if (Type == 3)
        {
            this.sendModifyBookMark_Alliance((byte)ID, Name);
            return;
        }
        if (!GUIManager.Instance.ShowUILock(EUILock.BookMark))
        {
            return;
        }
        MessagePacket messagePacket = new MessagePacket(1024);

        messagePacket.Protocol = Protocol._MSG_REQUEST_MODIFYBOOKMARK;
        messagePacket.AddSeqId();
        messagePacket.Add(ID);
        messagePacket.Add(Type);
        messagePacket.Add(Encoding.UTF8.GetBytes(Name), 0, (int)this.NameSize);
        messagePacket.Send(false);
    }
예제 #29
0
 // Token: 0x060008D7 RID: 2263 RVA: 0x000B5574 File Offset: 0x000B3774
 public void Send_MSG_REQUEST_GAMBLE_STARTGAME(byte Type)
 {
     if (GUIManager.Instance.ShowUILock(EUILock.UIBattleGambling))
     {
         MessagePacket messagePacket = new MessagePacket(1024);
         messagePacket.Protocol = Protocol._MSG_REQUEST_GAMBLE_STARTGAME;
         messagePacket.AddSeqId();
         messagePacket.Add(Type);
         messagePacket.Send(false);
     }
 }
예제 #30
0
 // Token: 0x06000EB1 RID: 3761 RVA: 0x0018576C File Offset: 0x0018396C
 private void SendModifyEmblem(ushort tmpValue)
 {
     if (GUIManager.Instance.ShowUILock(EUILock.Alliance_Manage))
     {
         MessagePacket messagePacket = new MessagePacket(1024);
         messagePacket.Protocol = Protocol._MSG_REQUEST_ALLIANCE_MODIFY_EMBLEM;
         messagePacket.AddSeqId();
         messagePacket.Add(tmpValue);
         messagePacket.Send(false);
     }
 }