//------------------------------------------------------------------------------
//
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
// ***************************************************************************
// * 作者: 李玥
// * 创建时间: 2017-08-24
// * 用途: 果园
// ***************************************************************************/
// Generated from: farm.proto
// Note: requires additional types generated from: common.proto
namespace pomelo.farm
{
//---------------------------------------------------------------------------------------
///
/// 地块
///
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"Block")]
public partial class Block : global::ProtoBuf.IExtensible
{
public Block() {}
private int _blockId;
///
/// 果园地块id
///
[global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"blockId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public int blockId
{
get { return _blockId; }
set { _blockId = value; }
}
private int _blockState;
///
/// 地块状态 (0:未开垦 1:已开垦 3:已种植)
///
[global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"blockState", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public int blockState
{
get { return _blockState; }
set { _blockState = value; }
}
private string _seedCode = "";
///
/// 种子代码
///
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"seedCode", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string seedCode
{
get { return _seedCode; }
set { _seedCode = value; }
}
private int _seedState = default(int);
///
/// 种子成长状态 (0:未播种 1:种子期 2:成长期 3:成熟期 4:可收获)
///
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"seedState", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int seedState
{
get { return _seedState; }
set { _seedState = value; }
}
private int _cultivateType = default(int);
///
/// 成长周期中的培育操作种类 (0:无需操作 1:浇水 2:除虫 3:除草 )
///
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"cultivateType", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int cultivateType
{
get { return _cultivateType; }
set { _cultivateType = value; }
}
private long _harvestTime = default(long);
///
/// 可收获的时间戳,如果不在成长周期中,则无此值
///
[global::ProtoBuf.ProtoMember(6, IsRequired = false, Name=@"harvestTime", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(long))]
public long harvestTime
{
get { return _harvestTime; }
set { _harvestTime = value; }
}
private long _protectEndTime = default(long);
///
/// 保护期结束的时间戳,如果不在保护期,则无此值
///
[global::ProtoBuf.ProtoMember(7, IsRequired = false, Name=@"protectEndTime", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(long))]
public long protectEndTime
{
get { return _protectEndTime; }
set { _protectEndTime = 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=@"Seed")]
public partial class Seed : global::ProtoBuf.IExtensible
{
public Seed() {}
private string _seedCode;
///
/// 种子代码
///
[global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"seedCode", DataFormat = global::ProtoBuf.DataFormat.Default)]
public string seedCode
{
get { return _seedCode; }
set { _seedCode = value; }
}
private int _num;
///
/// 种子数量
///
[global::ProtoBuf.ProtoMember(2, 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=@"Product")]
public partial class Product : global::ProtoBuf.IExtensible
{
public Product() {}
private string _productCode;
///
/// 种子代码
///
[global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"productCode", DataFormat = global::ProtoBuf.DataFormat.Default)]
public string productCode
{
get { return _productCode; }
set { _productCode = value; }
}
private int _num;
///
/// 果实数量
///
[global::ProtoBuf.ProtoMember(2, 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=@"RecordInfo")]
public partial class RecordInfo : global::ProtoBuf.IExtensible
{
public RecordInfo() {}
private int _recordType;
///
/// 记录类型
///
[global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"recordType", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public int recordType
{
get { return _recordType; }
set { _recordType = value; }
}
private long _recordTimeStamp;
///
/// 日志生成时间
///
[global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"recordTimeStamp", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public long recordTimeStamp
{
get { return _recordTimeStamp; }
set { _recordTimeStamp = value; }
}
private readonly global::System.Collections.Generic.List _recordParams = new global::System.Collections.Generic.List();
///
/// 记录所需参数
///
[global::ProtoBuf.ProtoMember(3, Name=@"recordParams", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List recordParams
{
get { return _recordParams; }
}
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=@"PlayerSummary")]
public partial class PlayerSummary : global::ProtoBuf.IExtensible
{
public PlayerSummary() {}
private string _playerId;
///
/// 玩家id
///
[global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"playerId", DataFormat = global::ProtoBuf.DataFormat.Default)]
public string playerId
{
get { return _playerId; }
set { _playerId = value; }
}
private string _roleName;
///
/// 玩家名字
///
[global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"roleName", DataFormat = global::ProtoBuf.DataFormat.Default)]
public string roleName
{
get { return _roleName; }
set { _roleName = value; }
}
private int _lv;
///
/// 玩家等级
///
[global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"lv", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public int lv
{
get { return _lv; }
set { _lv = value; }
}
private int _farmLv;
///
/// 果园等级
///
[global::ProtoBuf.ProtoMember(4, IsRequired = true, Name=@"farmLv", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public int farmLv
{
get { return _farmLv; }
set { _farmLv = value; }
}
private bool _canSow;
///
/// 是否可培育
///
[global::ProtoBuf.ProtoMember(5, IsRequired = true, Name=@"canSow", DataFormat = global::ProtoBuf.DataFormat.Default)]
public bool canSow
{
get { return _canSow; }
set { _canSow = value; }
}
private bool _canSteal;
///
/// 是否可偷取
///
[global::ProtoBuf.ProtoMember(6, IsRequired = true, Name=@"canSteal", DataFormat = global::ProtoBuf.DataFormat.Default)]
public bool canSteal
{
get { return _canSteal; }
set { _canSteal = 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=@"PlayerInfo")]
public partial class PlayerInfo : global::ProtoBuf.IExtensible
{
public PlayerInfo() {}
private string _playerId;
///
/// 玩家id
///
[global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"playerId", DataFormat = global::ProtoBuf.DataFormat.Default)]
public string playerId
{
get { return _playerId; }
set { _playerId = value; }
}
private pomelo.farm.PlayerSummary _playerSummary;
///
/// 摘要信息
///
[global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"playerSummary", DataFormat = global::ProtoBuf.DataFormat.Default)]
public pomelo.farm.PlayerSummary playerSummary
{
get { return _playerSummary; }
set { _playerSummary = value; }
}
private readonly global::System.Collections.Generic.List _blockLs = new global::System.Collections.Generic.List();
[global::ProtoBuf.ProtoMember(3, Name=@"blockLs", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List blockLs
{
get { return _blockLs; }
}
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=@"ShopItemInfo")]
public partial class ShopItemInfo : global::ProtoBuf.IExtensible
{
public ShopItemInfo() {}
private int _itemId;
[global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"itemId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public int itemId
{
get { return _itemId; }
set { _itemId = value; }
}
private int _changeNumCurrent;
///
/// 今日可兑换次数
///
[global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"changeNumCurrent", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public int changeNumCurrent
{
get { return _changeNumCurrent; }
set { _changeNumCurrent = value; }
}
private int _changeNumMax;
///
/// 最大可兑换次数
///
[global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"changeNumMax", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public int changeNumMax
{
get { return _changeNumMax; }
set { _changeNumMax = value; }
}
private readonly global::System.Collections.Generic.List _need = new global::System.Collections.Generic.List();
[global::ProtoBuf.ProtoMember(4, Name=@"need", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List need
{
get { return _need; }
}
private readonly global::System.Collections.Generic.List _award = new global::System.Collections.Generic.List();
[global::ProtoBuf.ProtoMember(5, Name=@"award", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List award
{
get { return _award; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
}