_task.cs 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // This code was generated by a tool.
  4. //
  5. // Changes to this file may cause incorrect behavior and will be lost if
  6. // the code is regenerated.
  7. // </auto-generated>
  8. //------------------------------------------------------------------------------
  9. // ***************************************************************************
  10. // * 作者: 卢松洁
  11. // * 创建时间: 2015-08-27
  12. // * 用途: 任务数据
  13. // ***************************************************************************
  14. // Generated from: task.proto
  15. namespace pomelo.task
  16. {
  17. //---------------------------------------------------------------------------------------
  18. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"Task")]
  19. public partial class Task : global::ProtoBuf.IExtensible
  20. {
  21. public Task() {}
  22. private int _templateId;
  23. /// <summary>
  24. /// 模版id
  25. /// </summary>
  26. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"templateId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  27. public int templateId
  28. {
  29. get { return _templateId; }
  30. set { _templateId = value; }
  31. }
  32. private readonly global::System.Collections.Generic.List<int> _progress = new global::System.Collections.Generic.List<int>();
  33. /// <summary>
  34. /// 任务进度(师门任务进度 / 主线第二个怪物目标数量)
  35. /// </summary>
  36. [global::ProtoBuf.ProtoMember(2, Name=@"progress", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  37. public global::System.Collections.Generic.List<int> progress
  38. {
  39. get { return _progress; }
  40. }
  41. private int _state;
  42. /// <summary>
  43. /// 任务状态
  44. /// </summary>
  45. [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"state", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  46. public int state
  47. {
  48. get { return _state; }
  49. set { _state = value; }
  50. }
  51. private int _leftTime;
  52. /// <summary>
  53. /// 剩余时间
  54. /// </summary>
  55. [global::ProtoBuf.ProtoMember(4, IsRequired = true, Name=@"leftTime", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  56. public int leftTime
  57. {
  58. get { return _leftTime; }
  59. set { _leftTime = value; }
  60. }
  61. private bool _isShowChapter = default(bool);
  62. /// <summary>
  63. /// 是否显示章节
  64. /// </summary>
  65. [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"isShowChapter", DataFormat = global::ProtoBuf.DataFormat.Default)]
  66. [global::System.ComponentModel.DefaultValue(default(bool))]
  67. public bool isShowChapter
  68. {
  69. get { return _isShowChapter; }
  70. set { _isShowChapter = value; }
  71. }
  72. private global::ProtoBuf.IExtension extensionObject;
  73. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  74. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  75. }
  76. //---------------------------------------------------------------------------------------
  77. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"Tasks")]
  78. public partial class Tasks : global::ProtoBuf.IExtensible
  79. {
  80. public Tasks() {}
  81. private readonly global::System.Collections.Generic.List<pomelo.task.Task> _taskList = new global::System.Collections.Generic.List<pomelo.task.Task>();
  82. [global::ProtoBuf.ProtoMember(1, Name=@"taskList", DataFormat = global::ProtoBuf.DataFormat.Default)]
  83. public global::System.Collections.Generic.List<pomelo.task.Task> taskList
  84. {
  85. get { return _taskList; }
  86. }
  87. private global::ProtoBuf.IExtension extensionObject;
  88. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  89. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  90. }
  91. }