113 lines
3.9 KiB
C#
113 lines
3.9 KiB
C#
using ProtoBuf;
|
|
using Thousandto.Plugins.Common;
|
|
|
|
using Thousandto.Code.Logic;
|
|
using Thousandto.Code.Center;
|
|
using MSG_backpack;
|
|
|
|
namespace Thousandto.Code.Logic.Network
|
|
{
|
|
|
|
/// <summary>
|
|
/// 实现消息的回调方法 ---背包物品的消息
|
|
/// </summary>
|
|
public partial class HandleMsgResult : IHandleMsgResult
|
|
{
|
|
//获取物品信息列表
|
|
public void GS2U_ResItemInfos( MSG_backpack.ResItemInfos result )
|
|
{
|
|
GameCenter.ItemContianerSystem.GS2U_ResItemInfos( result );
|
|
}
|
|
|
|
//添加物品
|
|
public void GS2U_ResItemAdd( MSG_backpack.ResItemAdd result )
|
|
{
|
|
GameCenter.ItemContianerSystem.GS2U_ResItemAdd( result );
|
|
}
|
|
|
|
//物品改变
|
|
public void GS2U_ResItemChange( MSG_backpack.ResItemChange result )
|
|
{
|
|
GameCenter.ItemContianerSystem.GS2U_ResItemChange( result );
|
|
}
|
|
|
|
//删除物品
|
|
public void GS2U_ResItemDelete( MSG_backpack.ResItemDelete result )
|
|
{
|
|
GameCenter.ItemContianerSystem.GS2U_ResItemDelete( result );
|
|
}
|
|
public void GS2U_ResItemListDelete(MSG_backpack.ResItemListDelete result) {
|
|
GameCenter.ItemContianerSystem.ResItemListDelete(result);
|
|
}
|
|
|
|
//钱币信息刷新
|
|
public void GS2U_ResCoinInfos( MSG_backpack.ResCoinInfos result )
|
|
{
|
|
GameCenter.ItemContianerSystem.GS2U_ResCoinInfos( result );
|
|
}
|
|
|
|
//钱币信息改变
|
|
public void GS2U_ResCoinChange( MSG_backpack.ResCoinChange result )
|
|
{
|
|
GameCenter.ItemContianerSystem.GS2U_ResCoinChange( result );
|
|
}
|
|
|
|
public void GS2U_ResExpChange(ResExpChange result)
|
|
{
|
|
GameCenter.ItemContianerSystem.GS2U_ResExpChange(result);
|
|
}
|
|
|
|
|
|
//开启背包格子成功
|
|
public void GS2U_ResOpenBagCellSuccess( MSG_backpack.ResOpenBagCellSuccess result )
|
|
{
|
|
GameCenter.ItemContianerSystem.GS2U_ResOpenBagCellSuccess( result );
|
|
}
|
|
|
|
//开启背包格子失败
|
|
public void GS2U_ResOpenBagCellFailed( MSG_backpack.ResOpenBagCellFailed result )
|
|
{
|
|
GameCenter.ItemContianerSystem.GS2U_ResOpenBagCellFailed( result );
|
|
}
|
|
//物品合成结果
|
|
public void GS2U_ResCompoundResult( MSG_backpack.ResCompoundResult result )
|
|
{
|
|
//GameCenter.ComposeSystem.GS2U_ResCompoundResult( result );
|
|
}
|
|
|
|
public void GS2U_ResOpenGiftEffects(MSG_backpack.ResOpenGiftEffects result)
|
|
{
|
|
//GameCenter.PushFixEvent((int)UIEventDefine.UI_OPEN_GIFT_OPEN, result);
|
|
}
|
|
|
|
public void GS2U_ResItemNotEnough(MSG_backpack.ResItemNotEnough result)
|
|
{
|
|
GameCenter.LuaSystem.Adaptor.OpenItemQuickGetForm(result.itemModelId);
|
|
}
|
|
public void GS2U_ResUseItemMakeBuff(MSG_backpack.ResUseItemMakeBuff result)
|
|
{
|
|
GameCenter.ItemContianerSystem.ResUseItemMakeBuff(result);
|
|
}
|
|
public void GS2U_ResAutoUseItem(MSG_backpack.ResAutoUseItem result) {
|
|
if (result.exp == 0 && result.bindGold == 0)
|
|
GameCenter.MsgPromptSystem.ShowPrompt(Thousandto.Cfg.Data.DeclareMessageString.Get(Thousandto.Cfg.Data.DeclareMessageString.C_UI_PLAYERBAG_NOAUTOUSEITEM));
|
|
else
|
|
GameCenter.PushFixEvent(UIEventDefine.UIAutoUseItemGetForm_OPEN, result);
|
|
}
|
|
|
|
public void GS2U_ResPetEquipAdd(MSG_backpack.ResPetEquipAdd result) {
|
|
|
|
}
|
|
public void GS2U_ResPetEquipDelete(MSG_backpack.ResPetEquipDelete result) {
|
|
|
|
}
|
|
public void GS2U_ResPetEquipBagInfos(MSG_backpack.ResPetEquipBagInfos result) {
|
|
|
|
}
|
|
|
|
public void GS2U_ResHorseEquipAdd(MSG_backpack.ResHorseEquipAdd result) { }
|
|
public void GS2U_ResHorseEquipDelete(MSG_backpack.ResHorseEquipDelete result) { }
|
|
public void GS2U_ResHorseEquipBagInfos(MSG_backpack.ResHorseEquipBagInfos result) { }
|
|
}
|
|
}
|