コード例 #1
0
ファイル: GuildHandler.cs プロジェクト: ryancheung/CypherCore
 void HandleGuildBankQueryTab(GuildBankQueryTab packet)
 {
     if (GetPlayer().GetGameObjectIfCanInteractWith(packet.Banker, GameObjectTypes.GuildBank))
     {
         Guild guild = GetPlayer().GetGuild();
         if (guild)
         {
             guild.SendBankList(this, packet.Tab, packet.FullUpdate);
         }
     }
 }
コード例 #2
0
ファイル: GuildHandler.cs プロジェクト: aufbau1/CypherCore
 void HandleGuildBankQueryTab(GuildBankQueryTab packet)
 {
     if (GetPlayer().GetGameObjectIfCanInteractWith(packet.Banker, GameObjectTypes.GuildBank))
     {
         Guild guild = GetPlayer().GetGuild();
         if (guild)
         {
             guild.SendBankList(this, packet.Tab, true /*packet.FullUpdate*/);
         }
         // HACK: client doesn't query entire tab content if it had received SMSG_GUILD_BANK_LIST in this session
         // but we broadcast bank updates to entire guild when *ANYONE* changes anything, incorrectly initializing clients
         // tab content with only data for that change
     }
 }