629 lines
22 KiB
C#
629 lines
22 KiB
C#
|
using System.Collections.Generic;
|
||
|
using Thousandto.Plugins.Common;
|
||
|
using Thousandto.Code.Logic.Network;
|
||
|
|
||
|
namespace MSG_LuckyDraw
|
||
|
{
|
||
|
public partial class awardIndexInfo : 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 :
|
||
|
if(indexes == null)
|
||
|
{
|
||
|
indexes = new List<int>();
|
||
|
}
|
||
|
indexes.Add(ProtoBufUtils.ReadInt32(ref readPos));
|
||
|
break;
|
||
|
case 2 :
|
||
|
awardType = ProtoBufUtils.ReadInt32(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);
|
||
|
for (int i = 0; i < indexes.Count; i++)
|
||
|
{
|
||
|
ProtoBufUtils.WriteInt32(1,indexes[i]);
|
||
|
}
|
||
|
ProtoBufUtils.WriteInt32(2,awardType);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
if(indexes != null)
|
||
|
{
|
||
|
indexes.Clear();
|
||
|
}
|
||
|
awardType = 0;
|
||
|
}
|
||
|
public List<int> indexes = new List<int>();
|
||
|
public int awardType;
|
||
|
}
|
||
|
public partial class awardRecordInfo : 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 :
|
||
|
playername = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
itemId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
itemNum = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4 :
|
||
|
bind = ProtoBufUtils.ReadBoolean(ref readPos);
|
||
|
break;
|
||
|
case 5 :
|
||
|
awardType = ProtoBufUtils.ReadInt32(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.WriteString(1,playername);
|
||
|
ProtoBufUtils.WriteInt32(2,itemId);
|
||
|
ProtoBufUtils.WriteInt32(3,itemNum);
|
||
|
ProtoBufUtils.WriteBoolean(4,bind);
|
||
|
ProtoBufUtils.WriteInt32(5,awardType);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
playername = null;
|
||
|
itemId = 0;
|
||
|
itemNum = 0;
|
||
|
bind = false;
|
||
|
awardType = 0;
|
||
|
}
|
||
|
public string playername;
|
||
|
public int itemId;
|
||
|
public int itemNum;
|
||
|
public bool bind;
|
||
|
public int awardType;
|
||
|
}
|
||
|
public partial class getDrawVolumeInfo : 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 :
|
||
|
maxCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
progress = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4 :
|
||
|
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.WriteInt32(2,maxCount);
|
||
|
ProtoBufUtils.WriteInt32(3,progress);
|
||
|
ProtoBufUtils.WriteBoolean(4,isGet);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
id = 0;
|
||
|
maxCount = 0;
|
||
|
progress = 0;
|
||
|
isGet = false;
|
||
|
}
|
||
|
public int id;
|
||
|
public int maxCount;
|
||
|
public int progress;
|
||
|
public bool isGet;
|
||
|
}
|
||
|
public partial class ReqOpenLuckyDrawPanel : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 533201;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
}
|
||
|
}
|
||
|
public partial class ResOpenLuckyDrawPanelResult : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResOpenLuckyDrawPanelResult(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 533101;
|
||
|
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:
|
||
|
awardtimes = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
if(getVolumes == null)
|
||
|
{
|
||
|
getVolumes = new List<getDrawVolumeInfo>();
|
||
|
}
|
||
|
getVolumes.Add(new getDrawVolumeInfo());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
getVolumes[getVolumes.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
awardtimes = 0;
|
||
|
if(getVolumes != null)
|
||
|
{
|
||
|
getVolumes.Clear();
|
||
|
}
|
||
|
}
|
||
|
public int awardtimes;
|
||
|
public List<getDrawVolumeInfo> getVolumes = new List<getDrawVolumeInfo>();
|
||
|
}
|
||
|
public partial class ReqLuckyDraw : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 533202;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
}
|
||
|
}
|
||
|
public partial class ResLuckyDrawResult : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResLuckyDrawResult(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 533102;
|
||
|
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:
|
||
|
retcode = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
awardType = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3:
|
||
|
awardIndex = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
retcode = 0;
|
||
|
awardType = 0;
|
||
|
awardIndex = 0;
|
||
|
}
|
||
|
public int retcode;
|
||
|
public int awardType;
|
||
|
public int awardIndex;
|
||
|
}
|
||
|
public partial class ReqGetLuckyDrawVolume : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 533203;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,id);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
id = 0;
|
||
|
}
|
||
|
public int id;
|
||
|
}
|
||
|
public partial class ResGetLuckyDrawVolumeResult : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResGetLuckyDrawVolumeResult(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 533103;
|
||
|
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(getVolume == null)
|
||
|
{
|
||
|
getVolume = new getDrawVolumeInfo();
|
||
|
}
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
getVolume.ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
if(getVolume != null)
|
||
|
{
|
||
|
getVolume.Clear();
|
||
|
}
|
||
|
}
|
||
|
public getDrawVolumeInfo getVolume;
|
||
|
}
|
||
|
public partial class ReqChangeAwardIndex : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 533204;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
for (int i = 0; i < items.Count; i++)
|
||
|
{
|
||
|
if(items != null)
|
||
|
{
|
||
|
items[i].WriteMessage(1);
|
||
|
}
|
||
|
}
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
if(items != null)
|
||
|
{
|
||
|
items.Clear();
|
||
|
}
|
||
|
}
|
||
|
public List<awardIndexInfo> items = new List<awardIndexInfo>();
|
||
|
}
|
||
|
public partial class ResChangeAwardIndexResult : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResChangeAwardIndexResult(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 533104;
|
||
|
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:
|
||
|
retcode = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
if(items == null)
|
||
|
{
|
||
|
items = new List<awardIndexInfo>();
|
||
|
}
|
||
|
items.Add(new awardIndexInfo());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
items[items.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
retcode = 0;
|
||
|
if(items != null)
|
||
|
{
|
||
|
items.Clear();
|
||
|
}
|
||
|
}
|
||
|
public int retcode;
|
||
|
public List<awardIndexInfo> items = new List<awardIndexInfo>();
|
||
|
}
|
||
|
public partial class ResDrawnRecord : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResDrawnRecord(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 533105;
|
||
|
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(record == null)
|
||
|
{
|
||
|
record = new awardRecordInfo();
|
||
|
}
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
record.ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
if(record != null)
|
||
|
{
|
||
|
record.Clear();
|
||
|
}
|
||
|
}
|
||
|
public awardRecordInfo record;
|
||
|
}
|
||
|
public partial class ReqCloseLuckyDrawPanel : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 533206;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
}
|
||
|
}
|
||
|
public partial class ResLuckyDrawOnlineResult : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResLuckyDrawOnlineResult(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 533106;
|
||
|
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(items == null)
|
||
|
{
|
||
|
items = new List<awardIndexInfo>();
|
||
|
}
|
||
|
items.Add(new awardIndexInfo());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
items[items.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 2:
|
||
|
if(records == null)
|
||
|
{
|
||
|
records = new List<awardRecordInfo>();
|
||
|
}
|
||
|
records.Add(new awardRecordInfo());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
records[records.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 3:
|
||
|
if(selfRecords == null)
|
||
|
{
|
||
|
selfRecords = new List<awardRecordInfo>();
|
||
|
}
|
||
|
selfRecords.Add(new awardRecordInfo());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
selfRecords[selfRecords.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 4:
|
||
|
awardtimes = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 5:
|
||
|
if(getVolumes == null)
|
||
|
{
|
||
|
getVolumes = new List<getDrawVolumeInfo>();
|
||
|
}
|
||
|
getVolumes.Add(new getDrawVolumeInfo());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
getVolumes[getVolumes.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
if(items != null)
|
||
|
{
|
||
|
items.Clear();
|
||
|
}
|
||
|
if(records != null)
|
||
|
{
|
||
|
records.Clear();
|
||
|
}
|
||
|
if(selfRecords != null)
|
||
|
{
|
||
|
selfRecords.Clear();
|
||
|
}
|
||
|
awardtimes = 0;
|
||
|
if(getVolumes != null)
|
||
|
{
|
||
|
getVolumes.Clear();
|
||
|
}
|
||
|
}
|
||
|
public List<awardIndexInfo> items = new List<awardIndexInfo>();
|
||
|
public List<awardRecordInfo> records = new List<awardRecordInfo>();
|
||
|
public List<awardRecordInfo> selfRecords = new List<awardRecordInfo>();
|
||
|
public int awardtimes;
|
||
|
public List<getDrawVolumeInfo> getVolumes = new List<getDrawVolumeInfo>();
|
||
|
}
|
||
|
}
|
||
|
|