123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543 |
- //------------------------------------------------------------------------------
- // <auto-generated>
- // This code was generated by a tool.
- //
- // Changes to this file may cause incorrect behavior and will be lost if
- // the code is regenerated.
- // </auto-generated>
- //------------------------------------------------------------------------------
- // ***************************************************************************
- // * 作者= 卢松洁
- // * 创建时间= 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
- {
-
- //---------------------------------------------------------------------------------------
- /// <summary>
- /// 交易邀请
- /// </summary>
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"InviteRequest")]
- public partial class InviteRequest : global::ProtoBuf.IExtensible
- {
- public InviteRequest() {}
-
-
- private string _c2s_playerId;
- /// <summary>
- /// 目标玩家
- /// </summary>
-
- [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;
- /// <summary>
- /// 交易格子index
- /// </summary>
-
- [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;
- /// <summary>
- /// 物品uuid
- /// </summary>
-
- [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;
- /// <summary>
- /// 物品数量
- /// </summary>
-
- [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); }
- }
-
-
- //---------------------------------------------------------------------------------------
- /// <summary>
- /// 添加物品/钻石
- /// </summary>
-
- [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<pomelo.area.TradeItem> _c2s_items = new global::System.Collections.Generic.List<pomelo.area.TradeItem>();
- [global::ProtoBuf.ProtoMember(2, Name=@"c2s_items", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List<pomelo.area.TradeItem> 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); }
- }
-
-
- //---------------------------------------------------------------------------------------
- /// <summary>
- /// 移除物品
- /// </summary>
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"RemoveItemRequest")]
- public partial class RemoveItemRequest : global::ProtoBuf.IExtensible
- {
- public RemoveItemRequest() {}
-
-
- private readonly global::System.Collections.Generic.List<int> _c2s_indexs = new global::System.Collections.Generic.List<int>();
- [global::ProtoBuf.ProtoMember(1, Name=@"c2s_indexs", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public global::System.Collections.Generic.List<int> 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); }
- }
-
-
- //---------------------------------------------------------------------------------------
- /// <summary>
- /// 交易操作
- /// </summary>
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"TradeOperateRequest")]
- public partial class TradeOperateRequest : global::ProtoBuf.IExtensible
- {
- public TradeOperateRequest() {}
-
-
- private int _c2s_operate;
- /// <summary>
- /// 1 取消 2 锁定 3 交易
- /// </summary>
-
- [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);
- /// <summary>
- /// 锁定的时候校验
- /// </summary>
-
- [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<pomelo.area.TradeItem> _c2s_items = new global::System.Collections.Generic.List<pomelo.area.TradeItem>();
- [global::ProtoBuf.ProtoMember(3, Name=@"c2s_items", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List<pomelo.area.TradeItem> 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;
- /// <summary>
- /// 关系 好友 1 同公会 2 陌生人 3
- /// </summary>
-
- [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); }
- }
-
-
- //---------------------------------------------------------------------------------------
- /// <summary>
- /// 交易开始的push
- /// </summary>
-
- [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;
- /// <summary>
- /// Gird 里面的item不存在就是移除操作
- /// </summary>
-
- [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;
- /// <summary>
- /// 当Gird里面的item存在时,detail也存在
- /// </summary>
-
- [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<pomelo.area.TradeGrid> _grids = new global::System.Collections.Generic.List<pomelo.area.TradeGrid>();
- [global::ProtoBuf.ProtoMember(2, Name=@"grids", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List<pomelo.area.TradeGrid> 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;
- /// <summary>
- /// 0 结束(包括取消和交易完成) 2 锁定 3 交易(就是点了确认按钮)
- /// </summary>
-
- [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); }
- }
-
-
- }
-
|