//------------------------------------------------------------------------------
//
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
// ***************************************************************************
// * 作者= 卢松洁
// * 创建时间= 2015-08-27
// * 用途= 交易处理器
// ***************************************************************************
// Generated from: tradeHandler.proto
// Note: requires additional types generated from: common.proto
// Note: requires additional types generated from: item.proto
namespace pomelo.area
{
//---------------------------------------------------------------------------------------
///
/// 交易邀请
///
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"InviteRequest")]
public partial class InviteRequest : global::ProtoBuf.IExtensible
{
public InviteRequest() {}
private string _c2s_playerId;
///
/// 目标玩家
///
[global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"c2s_playerId", DataFormat = global::ProtoBuf.DataFormat.Default)]
public string c2s_playerId
{
get { return _c2s_playerId; }
set { _c2s_playerId = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
//---------------------------------------------------------------------------------------
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"InviteResponse")]
public partial class InviteResponse : global::ProtoBuf.IExtensible
{
public InviteResponse() {}
private int _s2c_code;
[global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public int s2c_code
{
get { return _s2c_code; }
set { _s2c_code = value; }
}
private string _s2c_msg = "";
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string s2c_msg
{
get { return _s2c_msg; }
set { _s2c_msg = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
//---------------------------------------------------------------------------------------
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"TradeItem")]
public partial class TradeItem : global::ProtoBuf.IExtensible
{
public TradeItem() {}
private int _index;
///
/// 交易格子index
///
[global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"index", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public int index
{
get { return _index; }
set { _index = value; }
}
private string _id;
///
/// 物品uuid
///
[global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"id", DataFormat = global::ProtoBuf.DataFormat.Default)]
public string id
{
get { return _id; }
set { _id = value; }
}
private int _num;
///
/// 物品数量
///
[global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"num", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public int num
{
get { return _num; }
set { _num = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
//---------------------------------------------------------------------------------------
///
/// 添加物品/钻石
///
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"AddItemRequest")]
public partial class AddItemRequest : global::ProtoBuf.IExtensible
{
public AddItemRequest() {}
private int _c2s_diamond = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"c2s_diamond", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int c2s_diamond
{
get { return _c2s_diamond; }
set { _c2s_diamond = value; }
}
private readonly global::System.Collections.Generic.List _c2s_items = new global::System.Collections.Generic.List();
[global::ProtoBuf.ProtoMember(2, Name=@"c2s_items", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List c2s_items
{
get { return _c2s_items; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
//---------------------------------------------------------------------------------------
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"AddItemResponse")]
public partial class AddItemResponse : global::ProtoBuf.IExtensible
{
public AddItemResponse() {}
private int _s2c_code;
[global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public int s2c_code
{
get { return _s2c_code; }
set { _s2c_code = value; }
}
private string _s2c_msg = "";
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string s2c_msg
{
get { return _s2c_msg; }
set { _s2c_msg = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
//---------------------------------------------------------------------------------------
///
/// 移除物品
///
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"RemoveItemRequest")]
public partial class RemoveItemRequest : global::ProtoBuf.IExtensible
{
public RemoveItemRequest() {}
private readonly global::System.Collections.Generic.List _c2s_indexs = new global::System.Collections.Generic.List();
[global::ProtoBuf.ProtoMember(1, Name=@"c2s_indexs", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public global::System.Collections.Generic.List c2s_indexs
{
get { return _c2s_indexs; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
//---------------------------------------------------------------------------------------
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"RemoveItemResponse")]
public partial class RemoveItemResponse : global::ProtoBuf.IExtensible
{
public RemoveItemResponse() {}
private int _s2c_code;
[global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public int s2c_code
{
get { return _s2c_code; }
set { _s2c_code = value; }
}
private string _s2c_msg = "";
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string s2c_msg
{
get { return _s2c_msg; }
set { _s2c_msg = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
//---------------------------------------------------------------------------------------
///
/// 交易操作
///
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"TradeOperateRequest")]
public partial class TradeOperateRequest : global::ProtoBuf.IExtensible
{
public TradeOperateRequest() {}
private int _c2s_operate;
///
/// 1 取消 2 锁定 3 交易
///
[global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"c2s_operate", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public int c2s_operate
{
get { return _c2s_operate; }
set { _c2s_operate = value; }
}
private int _c2s_diamond = default(int);
///
/// 锁定的时候校验
///
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"c2s_diamond", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int c2s_diamond
{
get { return _c2s_diamond; }
set { _c2s_diamond = value; }
}
private readonly global::System.Collections.Generic.List _c2s_items = new global::System.Collections.Generic.List();
[global::ProtoBuf.ProtoMember(3, Name=@"c2s_items", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List c2s_items
{
get { return _c2s_items; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
//---------------------------------------------------------------------------------------
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"TradeOperateResponse")]
public partial class TradeOperateResponse : global::ProtoBuf.IExtensible
{
public TradeOperateResponse() {}
private int _s2c_code;
[global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public int s2c_code
{
get { return _s2c_code; }
set { _s2c_code = value; }
}
private string _s2c_msg = "";
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string s2c_msg
{
get { return _s2c_msg; }
set { _s2c_msg = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
//---------------------------------------------------------------------------------------
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"TradePlayer")]
public partial class TradePlayer : global::ProtoBuf.IExtensible
{
public TradePlayer() {}
private string _id;
[global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"id", DataFormat = global::ProtoBuf.DataFormat.Default)]
public string id
{
get { return _id; }
set { _id = value; }
}
private string _name;
[global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"name", DataFormat = global::ProtoBuf.DataFormat.Default)]
public string name
{
get { return _name; }
set { _name = value; }
}
private int _level;
[global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"level", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public int level
{
get { return _level; }
set { _level = value; }
}
private int _upLevel;
[global::ProtoBuf.ProtoMember(4, IsRequired = true, Name=@"upLevel", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public int upLevel
{
get { return _upLevel; }
set { _upLevel = value; }
}
private int _pro;
[global::ProtoBuf.ProtoMember(5, IsRequired = true, Name=@"pro", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public int pro
{
get { return _pro; }
set { _pro = value; }
}
private int _relation;
///
/// 关系 好友 1 同公会 2 陌生人 3
///
[global::ProtoBuf.ProtoMember(6, IsRequired = true, Name=@"relation", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public int relation
{
get { return _relation; }
set { _relation = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
//---------------------------------------------------------------------------------------
///
/// 交易开始的push
///
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"TradeBeginPush")]
public partial class TradeBeginPush : global::ProtoBuf.IExtensible
{
public TradeBeginPush() {}
private int _s2c_code;
[global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public int s2c_code
{
get { return _s2c_code; }
set { _s2c_code = value; }
}
private pomelo.area.TradePlayer _tradePlayer;
[global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"tradePlayer", DataFormat = global::ProtoBuf.DataFormat.Default)]
public pomelo.area.TradePlayer tradePlayer
{
get { return _tradePlayer; }
set { _tradePlayer = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
//---------------------------------------------------------------------------------------
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"TradeGrid")]
public partial class TradeGrid : global::ProtoBuf.IExtensible
{
public TradeGrid() {}
private pomelo.item.Grid _grid;
///
/// Gird 里面的item不存在就是移除操作
///
[global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"grid", DataFormat = global::ProtoBuf.DataFormat.Default)]
public pomelo.item.Grid grid
{
get { return _grid; }
set { _grid = value; }
}
private pomelo.item.ItemDetail _detail = null;
///
/// 当Gird里面的item存在时,detail也存在
///
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"detail", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public pomelo.item.ItemDetail detail
{
get { return _detail; }
set { _detail = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
//---------------------------------------------------------------------------------------
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"TradeData")]
public partial class TradeData : global::ProtoBuf.IExtensible
{
public TradeData() {}
private int _diamond = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"diamond", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int diamond
{
get { return _diamond; }
set { _diamond = value; }
}
private readonly global::System.Collections.Generic.List _grids = new global::System.Collections.Generic.List();
[global::ProtoBuf.ProtoMember(2, Name=@"grids", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List grids
{
get { return _grids; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
//---------------------------------------------------------------------------------------
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"TradeItemChangePush")]
public partial class TradeItemChangePush : global::ProtoBuf.IExtensible
{
public TradeItemChangePush() {}
private int _s2c_code;
[global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public int s2c_code
{
get { return _s2c_code; }
set { _s2c_code = value; }
}
private pomelo.area.TradeData _data;
[global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"data", DataFormat = global::ProtoBuf.DataFormat.Default)]
public pomelo.area.TradeData data
{
get { return _data; }
set { _data = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
//---------------------------------------------------------------------------------------
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"TradeOperatePush")]
public partial class TradeOperatePush : global::ProtoBuf.IExtensible
{
public TradeOperatePush() {}
private int _s2c_code;
[global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public int s2c_code
{
get { return _s2c_code; }
set { _s2c_code = value; }
}
private int _operate;
///
/// 0 结束(包括取消和交易完成) 2 锁定 3 交易(就是点了确认按钮)
///
[global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"operate", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public int operate
{
get { return _operate; }
set { _operate = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
}