628 lines
22 KiB
C#
628 lines
22 KiB
C#
|
using System.Collections.Generic;
|
||
|
using Thousandto.Plugins.Common;
|
||
|
using Thousandto.Code.Logic.Network;
|
||
|
|
||
|
namespace MSG_TreasureHuntXianjia
|
||
|
{
|
||
|
public partial class ReqTreasureHuntXijia : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 187201;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,type);
|
||
|
ProtoBufUtils.WriteInt32(2,times);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
type = 0;
|
||
|
times = 0;
|
||
|
}
|
||
|
public int type;
|
||
|
public int times;
|
||
|
}
|
||
|
public partial class ResTreasureXijiaResult : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResTreasureXijiaResult(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 187101;
|
||
|
public void Send(){}
|
||
|
public void ReadMessage(byte[] bytes)
|
||
|
{
|
||
|
lock (ProtoBufUtils.ReadLocker)
|
||
|
{
|
||
|
Clear();
|
||
|
int endIndex = bytes.Length - 1;
|
||
|
int readPos = 0;
|
||
|
int totalCount = 0;
|
||
|
ProtoBufUtils.InitReadData(bytes, ref readPos);
|
||
|
while (readPos <= endIndex)
|
||
|
{
|
||
|
int curType = bytes[readPos] & 7;
|
||
|
int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos);
|
||
|
switch (fieldNumber)
|
||
|
{
|
||
|
case 1:
|
||
|
if(info == null)
|
||
|
{
|
||
|
info = new MSG_TreasureHunt.warehouseInfo();
|
||
|
}
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
info.ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 2:
|
||
|
xijiaHuntCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3:
|
||
|
dayHuntCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
if(info != null)
|
||
|
{
|
||
|
info.Clear();
|
||
|
}
|
||
|
xijiaHuntCount = 0;
|
||
|
dayHuntCount = 0;
|
||
|
}
|
||
|
public MSG_TreasureHunt.warehouseInfo info;
|
||
|
public int xijiaHuntCount;
|
||
|
public int dayHuntCount;
|
||
|
}
|
||
|
public partial class ReqBuyCount : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 187202;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,type);
|
||
|
ProtoBufUtils.WriteInt32(2,times);
|
||
|
ProtoBufUtils.WriteInt32(3,num);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
type = 0;
|
||
|
times = 0;
|
||
|
num = 0;
|
||
|
}
|
||
|
public int type;
|
||
|
public int times;
|
||
|
public int num;
|
||
|
}
|
||
|
public partial class ResBuyCountResult : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResBuyCountResult(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 187102;
|
||
|
public void Send(){}
|
||
|
public void ReadMessage(byte[] bytes)
|
||
|
{
|
||
|
lock (ProtoBufUtils.ReadLocker)
|
||
|
{
|
||
|
Clear();
|
||
|
int endIndex = bytes.Length - 1;
|
||
|
int readPos = 0;
|
||
|
int totalCount = 0;
|
||
|
ProtoBufUtils.InitReadData(bytes, ref readPos);
|
||
|
while (readPos <= endIndex)
|
||
|
{
|
||
|
int curType = bytes[readPos] & 7;
|
||
|
int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos);
|
||
|
switch (fieldNumber)
|
||
|
{
|
||
|
case 1:
|
||
|
type = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
type = 0;
|
||
|
}
|
||
|
public int type;
|
||
|
}
|
||
|
public partial class ReqExtract : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 187203;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,type);
|
||
|
ProtoBufUtils.WriteInt64(2,uid);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
type = 0;
|
||
|
uid = 0;
|
||
|
}
|
||
|
public int type;
|
||
|
public long uid;
|
||
|
}
|
||
|
public partial class ResExtractResult : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResExtractResult(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 187103;
|
||
|
public void Send(){}
|
||
|
public void ReadMessage(byte[] bytes)
|
||
|
{
|
||
|
lock (ProtoBufUtils.ReadLocker)
|
||
|
{
|
||
|
Clear();
|
||
|
int endIndex = bytes.Length - 1;
|
||
|
int readPos = 0;
|
||
|
int totalCount = 0;
|
||
|
ProtoBufUtils.InitReadData(bytes, ref readPos);
|
||
|
while (readPos <= endIndex)
|
||
|
{
|
||
|
int curType = bytes[readPos] & 7;
|
||
|
int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos);
|
||
|
switch (fieldNumber)
|
||
|
{
|
||
|
case 1:
|
||
|
type = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
uid = ProtoBufUtils.ReadInt64(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
type = 0;
|
||
|
uid = 0;
|
||
|
}
|
||
|
public int type;
|
||
|
public long uid;
|
||
|
}
|
||
|
public partial class ResAllWarehouseXianjiaInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResAllWarehouseXianjiaInfo(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 187105;
|
||
|
public void Send(){}
|
||
|
public void ReadMessage(byte[] bytes)
|
||
|
{
|
||
|
lock (ProtoBufUtils.ReadLocker)
|
||
|
{
|
||
|
Clear();
|
||
|
int endIndex = bytes.Length - 1;
|
||
|
int readPos = 0;
|
||
|
int totalCount = 0;
|
||
|
ProtoBufUtils.InitReadData(bytes, ref readPos);
|
||
|
while (readPos <= endIndex)
|
||
|
{
|
||
|
int curType = bytes[readPos] & 7;
|
||
|
int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos);
|
||
|
switch (fieldNumber)
|
||
|
{
|
||
|
case 1:
|
||
|
if(info == null)
|
||
|
{
|
||
|
info = new List<MSG_TreasureHunt.warehouseInfo>();
|
||
|
}
|
||
|
info.Add(new MSG_TreasureHunt.warehouseInfo());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
info[info.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 2:
|
||
|
if(allRecordInfo == null)
|
||
|
{
|
||
|
allRecordInfo = new List<MSG_TreasureHunt.treasureRecordInfo>();
|
||
|
}
|
||
|
allRecordInfo.Add(new MSG_TreasureHunt.treasureRecordInfo());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
allRecordInfo[allRecordInfo.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 3:
|
||
|
if(selfRecordInfo == null)
|
||
|
{
|
||
|
selfRecordInfo = new List<MSG_TreasureHunt.treasureRecordInfo>();
|
||
|
}
|
||
|
selfRecordInfo.Add(new MSG_TreasureHunt.treasureRecordInfo());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
selfRecordInfo[selfRecordInfo.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 4:
|
||
|
xijiaHuntCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 5:
|
||
|
mibaoHuntCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
if(info != null)
|
||
|
{
|
||
|
info.Clear();
|
||
|
}
|
||
|
if(allRecordInfo != null)
|
||
|
{
|
||
|
allRecordInfo.Clear();
|
||
|
}
|
||
|
if(selfRecordInfo != null)
|
||
|
{
|
||
|
selfRecordInfo.Clear();
|
||
|
}
|
||
|
xijiaHuntCount = 0;
|
||
|
mibaoHuntCount = 0;
|
||
|
}
|
||
|
public List<MSG_TreasureHunt.warehouseInfo> info = new List<MSG_TreasureHunt.warehouseInfo>();
|
||
|
public List<MSG_TreasureHunt.treasureRecordInfo> allRecordInfo = new List<MSG_TreasureHunt.treasureRecordInfo>();
|
||
|
public List<MSG_TreasureHunt.treasureRecordInfo> selfRecordInfo = new List<MSG_TreasureHunt.treasureRecordInfo>();
|
||
|
public int xijiaHuntCount;
|
||
|
public int mibaoHuntCount;
|
||
|
}
|
||
|
public partial class ResRewardResultXianjiaPanle : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResRewardResultXianjiaPanle(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 187107;
|
||
|
public void Send(){}
|
||
|
public void ReadMessage(byte[] bytes)
|
||
|
{
|
||
|
lock (ProtoBufUtils.ReadLocker)
|
||
|
{
|
||
|
Clear();
|
||
|
int endIndex = bytes.Length - 1;
|
||
|
int readPos = 0;
|
||
|
int totalCount = 0;
|
||
|
ProtoBufUtils.InitReadData(bytes, ref readPos);
|
||
|
while (readPos <= endIndex)
|
||
|
{
|
||
|
int curType = bytes[readPos] & 7;
|
||
|
int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos);
|
||
|
switch (fieldNumber)
|
||
|
{
|
||
|
case 1:
|
||
|
if(simpleItems == null)
|
||
|
{
|
||
|
simpleItems = new List<MSG_TreasureHunt.simpleItemInfo>();
|
||
|
}
|
||
|
simpleItems.Add(new MSG_TreasureHunt.simpleItemInfo());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
simpleItems[simpleItems.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 2:
|
||
|
type = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3:
|
||
|
ext1 = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4:
|
||
|
ext2 = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
if(simpleItems != null)
|
||
|
{
|
||
|
simpleItems.Clear();
|
||
|
}
|
||
|
type = 0;
|
||
|
ext1 = 0;
|
||
|
ext2 = 0;
|
||
|
}
|
||
|
public List<MSG_TreasureHunt.simpleItemInfo> simpleItems = new List<MSG_TreasureHunt.simpleItemInfo>();
|
||
|
public int type;
|
||
|
public int ext1;
|
||
|
public int ext2;
|
||
|
}
|
||
|
public partial class MibaoData : ProtoBuf.IMessageInfo, ProtoBuf.IExtensible
|
||
|
{
|
||
|
public void Send(){}
|
||
|
public void Excute(){}
|
||
|
public void ReadMessage(ref int readPos, int totalCount)
|
||
|
{
|
||
|
int endIndex = totalCount + readPos - 1;
|
||
|
while (readPos <= endIndex)
|
||
|
{
|
||
|
int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos);
|
||
|
switch (fieldNumber)
|
||
|
{
|
||
|
case 1 :
|
||
|
id = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
isGet = ProtoBufUtils.ReadBoolean(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public int WriteMessage(int fieldNumber)
|
||
|
{
|
||
|
ProtoBufUtils.WriteHeader(fieldNumber, ProtoBuf.WireType.String);
|
||
|
int subItemInfoId = ProtoBufUtils.GetSubItemInfoId();
|
||
|
ProtoBufUtils.SetEmptyLength(subItemInfoId);
|
||
|
ProtoBufUtils.SetVBeginIndex(subItemInfoId);
|
||
|
ProtoBufUtils.WriteInt32(1,id);
|
||
|
ProtoBufUtils.WriteBoolean(2,isGet);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
id = 0;
|
||
|
isGet = false;
|
||
|
}
|
||
|
public int id;
|
||
|
public bool isGet;
|
||
|
}
|
||
|
public partial class ReqOpenXianjiaHuntPanel : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 187204;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,type);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
type = 0;
|
||
|
}
|
||
|
public int type;
|
||
|
}
|
||
|
public partial class ResOpenXianjiaHuntPanel : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResOpenXianjiaHuntPanel(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 187108;
|
||
|
public void Send(){}
|
||
|
public void ReadMessage(byte[] bytes)
|
||
|
{
|
||
|
lock (ProtoBufUtils.ReadLocker)
|
||
|
{
|
||
|
Clear();
|
||
|
int endIndex = bytes.Length - 1;
|
||
|
int readPos = 0;
|
||
|
int totalCount = 0;
|
||
|
ProtoBufUtils.InitReadData(bytes, ref readPos);
|
||
|
while (readPos <= endIndex)
|
||
|
{
|
||
|
int curType = bytes[readPos] & 7;
|
||
|
int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos);
|
||
|
switch (fieldNumber)
|
||
|
{
|
||
|
case 1:
|
||
|
type = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
lastTime = ProtoBufUtils.ReadInt64(ref readPos);
|
||
|
break;
|
||
|
case 3:
|
||
|
round = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4:
|
||
|
huntTime = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 5:
|
||
|
if(reward_1 == null)
|
||
|
{
|
||
|
reward_1 = new List<MibaoData>();
|
||
|
}
|
||
|
reward_1.Add(new MibaoData());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
reward_1[reward_1.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 6:
|
||
|
if(reward_2 == null)
|
||
|
{
|
||
|
reward_2 = new List<MibaoData>();
|
||
|
}
|
||
|
reward_2.Add(new MibaoData());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
reward_2[reward_2.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 7:
|
||
|
dayHuntCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 8:
|
||
|
mibaoHuntCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
type = 0;
|
||
|
lastTime = 0;
|
||
|
round = 0;
|
||
|
huntTime = 0;
|
||
|
if(reward_1 != null)
|
||
|
{
|
||
|
reward_1.Clear();
|
||
|
}
|
||
|
if(reward_2 != null)
|
||
|
{
|
||
|
reward_2.Clear();
|
||
|
}
|
||
|
dayHuntCount = 0;
|
||
|
mibaoHuntCount = 0;
|
||
|
}
|
||
|
public int type;
|
||
|
public long lastTime;
|
||
|
public int round;
|
||
|
public int huntTime;
|
||
|
public List<MibaoData> reward_1 = new List<MibaoData>();
|
||
|
public List<MibaoData> reward_2 = new List<MibaoData>();
|
||
|
public int dayHuntCount;
|
||
|
public int mibaoHuntCount;
|
||
|
}
|
||
|
public partial class ReqTreasureHuntMibao : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 187205;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,type);
|
||
|
ProtoBufUtils.WriteInt32(2,id);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
type = 0;
|
||
|
id = 0;
|
||
|
}
|
||
|
public int type;
|
||
|
public int id;
|
||
|
}
|
||
|
public partial class ResTreasureHuntMibaoResult : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResTreasureHuntMibaoResult(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 187109;
|
||
|
public void Send(){}
|
||
|
public void ReadMessage(byte[] bytes)
|
||
|
{
|
||
|
lock (ProtoBufUtils.ReadLocker)
|
||
|
{
|
||
|
Clear();
|
||
|
int endIndex = bytes.Length - 1;
|
||
|
int readPos = 0;
|
||
|
int totalCount = 0;
|
||
|
ProtoBufUtils.InitReadData(bytes, ref readPos);
|
||
|
while (readPos <= endIndex)
|
||
|
{
|
||
|
int curType = bytes[readPos] & 7;
|
||
|
int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos);
|
||
|
switch (fieldNumber)
|
||
|
{
|
||
|
case 1:
|
||
|
type = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
if(reward_1 == null)
|
||
|
{
|
||
|
reward_1 = new List<MibaoData>();
|
||
|
}
|
||
|
reward_1.Add(new MibaoData());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
reward_1[reward_1.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 3:
|
||
|
if(info == null)
|
||
|
{
|
||
|
info = new MSG_TreasureHunt.warehouseInfo();
|
||
|
}
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
info.ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 4:
|
||
|
mibaoHuntCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
type = 0;
|
||
|
if(reward_1 != null)
|
||
|
{
|
||
|
reward_1.Clear();
|
||
|
}
|
||
|
if(info != null)
|
||
|
{
|
||
|
info.Clear();
|
||
|
}
|
||
|
mibaoHuntCount = 0;
|
||
|
}
|
||
|
public int type;
|
||
|
public List<MibaoData> reward_1 = new List<MibaoData>();
|
||
|
public MSG_TreasureHunt.warehouseInfo info;
|
||
|
public int mibaoHuntCount;
|
||
|
}
|
||
|
}
|
||
|
|