//------------------------------------------------------------------------------
//
// 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: task.proto
namespace pomelo.task
{
//---------------------------------------------------------------------------------------
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"Task")]
public partial class Task : global::ProtoBuf.IExtensible
{
public Task() {}
private int _templateId;
///
/// 模版id
///
[global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"templateId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public int templateId
{
get { return _templateId; }
set { _templateId = value; }
}
private readonly global::System.Collections.Generic.List _progress = new global::System.Collections.Generic.List();
///
/// 任务进度(师门任务进度 / 主线第二个怪物目标数量)
///
[global::ProtoBuf.ProtoMember(2, Name=@"progress", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public global::System.Collections.Generic.List progress
{
get { return _progress; }
}
private int _state;
///
/// 任务状态
///
[global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"state", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public int state
{
get { return _state; }
set { _state = value; }
}
private int _leftTime;
///
/// 剩余时间
///
[global::ProtoBuf.ProtoMember(4, IsRequired = true, Name=@"leftTime", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public int leftTime
{
get { return _leftTime; }
set { _leftTime = value; }
}
private bool _isShowChapter = default(bool);
///
/// 是否显示章节
///
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"isShowChapter", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool isShowChapter
{
get { return _isShowChapter; }
set { _isShowChapter = 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=@"Tasks")]
public partial class Tasks : global::ProtoBuf.IExtensible
{
public Tasks() {}
private readonly global::System.Collections.Generic.List _taskList = new global::System.Collections.Generic.List();
[global::ProtoBuf.ProtoMember(1, Name=@"taskList", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List taskList
{
get { return _taskList; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
}