2025-01-25 04:38:09 +08:00

1484 lines
49 KiB
C#

using System.Collections.Generic;
using Thousandto.Plugins.Common;
using Thousandto.Code.Logic.Network;
namespace MSG_Peak
{
public partial class PeakReward : 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 :
itemId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2 :
count = 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.WriteInt32(1,itemId);
ProtoBufUtils.WriteInt32(2,count);
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
itemId = 0;
count = 0;
}
public int itemId;
public int count;
}
public partial class PeakRankRole : 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 :
roleId = ProtoBufUtils.ReadUint64(ref readPos);
break;
case 2 :
name = ProtoBufUtils.ReadString(ref readPos);
break;
case 3 :
serverId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 4 :
score = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 5 :
stageId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 6 :
power = ProtoBufUtils.ReadInt64(ref readPos);
break;
case 7 :
order = 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.WriteUint64(1,roleId);
ProtoBufUtils.WriteString(2,name);
ProtoBufUtils.WriteInt32(3,serverId);
ProtoBufUtils.WriteInt32(4,score);
ProtoBufUtils.WriteInt32(5,stageId);
ProtoBufUtils.WriteInt64(6,power);
ProtoBufUtils.WriteInt32(7,order);
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
roleId = 0;
name = null;
serverId = 0;
score = 0;
stageId = 0;
power = 0;
order = 0;
}
public ulong roleId;
public string name;
public int serverId;
public int score;
public int stageId;
public long power;
public int order;
}
public partial class PeakStageReward : 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 :
stateId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2 :
count = 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.WriteInt32(1,stateId);
ProtoBufUtils.WriteInt32(2,count);
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
stateId = 0;
count = 0;
}
public int stateId;
public int count;
}
public partial class RewardInfo : 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 :
roleId = ProtoBufUtils.ReadInt64(ref readPos);
break;
case 2 :
if(id == null)
{
id = new List<int>();
}
id.Add(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.WriteInt64(1,roleId);
for (int i = 0; i < id.Count; i++)
{
ProtoBufUtils.WriteInt32(2,id[i]);
}
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
roleId = 0;
if(id != null)
{
id.Clear();
}
}
public long roleId;
public List<int> id = new List<int>();
}
public partial class ReqPeakRankInfo : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 127201;
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 ResPeakRankList : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResPeakRankList(this);
}
public const uint MsgID = 127101;
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(ranks == null)
{
ranks = new List<PeakRankRole>();
}
ranks.Add(new PeakRankRole());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
ranks[ranks.Count - 1].ReadMessage(ref readPos, totalCount);
break;
case 2:
if(selfRank == null)
{
selfRank = new PeakRankRole();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
selfRank.ReadMessage(ref readPos, totalCount);
break;
case 3:
season = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(ranks != null)
{
ranks.Clear();
}
if(selfRank != null)
{
selfRank.Clear();
}
season = 0;
}
public List<PeakRankRole> ranks = new List<PeakRankRole>();
public PeakRankRole selfRank;
public int season;
}
public partial class ReqPeakInfo : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 127202;
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 ResPeakInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResPeakInfo(this);
}
public const uint MsgID = 127102;
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:
win = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2:
all = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3:
dayPkCount = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 4:
dayExp = ProtoBufUtils.ReadInt64(ref readPos);
break;
case 5:
if(dayBoxIds == null)
{
dayBoxIds = new List<int>();
}
dayBoxIds.Add(ProtoBufUtils.ReadInt32(ref readPos));
break;
default:
break;
}
}
}
}
public void Clear()
{
win = 0;
all = 0;
dayPkCount = 0;
dayExp = 0;
if(dayBoxIds != null)
{
dayBoxIds.Clear();
}
}
public int win;
public int all;
public int dayPkCount;
public long dayExp;
public List<int> dayBoxIds = new List<int>();
}
public partial class ReqPeakStageInfo : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 127203;
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 ResPeakStageInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResPeakStageInfo(this);
}
public const uint MsgID = 127103;
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:
score = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2:
if(stageList == null)
{
stageList = new List<int>();
}
stageList.Add(ProtoBufUtils.ReadInt32(ref readPos));
break;
case 3:
if(remainReward == null)
{
remainReward = new List<PeakStageReward>();
}
remainReward.Add(new PeakStageReward());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
remainReward[remainReward.Count - 1].ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
score = 0;
if(stageList != null)
{
stageList.Clear();
}
if(remainReward != null)
{
remainReward.Clear();
}
}
public int score;
public List<int> stageList = new List<int>();
public List<PeakStageReward> remainReward = new List<PeakStageReward>();
}
public partial class ReqPeakTimesReward : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 127204;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteInt32(1,times);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
times = 0;
}
public int times;
}
public partial class ResPeakTimesResult : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResPeakTimesResult(this);
}
public const uint MsgID = 127104;
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:
times = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
times = 0;
}
public int times;
}
public partial class ReqPeakStageReward : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 127205;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteInt32(1,stageId);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
stageId = 0;
}
public int stageId;
}
public partial class ResPeakStageResult : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResPeakStageResult(this);
}
public const uint MsgID = 127105;
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:
stageId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2:
remain = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3:
state = ProtoBufUtils.ReadBoolean(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
stageId = 0;
remain = 0;
state = false;
}
public int stageId;
public int remain;
public bool state;
}
public partial class ReqEnterPeakMatch : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 127206;
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 ResPeakMatchRes : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResPeakMatchRes(this);
}
public const uint MsgID = 127109;
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)
{
default:
break;
}
}
}
}
public void Clear()
{
}
}
public partial class ReqCancelPeakMatch : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 127207;
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 ReqEnterWaitScene : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 127208;
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 ResCancelPeakMatch : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResCancelPeakMatch(this);
}
public const uint MsgID = 127106;
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)
{
default:
break;
}
}
}
}
public void Clear()
{
}
}
public partial class ResPeakPkTimeInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResPeakPkTimeInfo(this);
}
public const uint MsgID = 127107;
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:
time = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2:
state = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
time = 0;
state = 0;
}
public int time;
public int state;
}
public partial class ResPeakPkGameOverInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResPeakPkGameOverInfo(this);
}
public const uint MsgID = 127108;
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:
state = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2:
oldScore = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3:
incrScore = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 5:
enemyName = ProtoBufUtils.ReadString(ref readPos);
break;
case 4:
if(showReward == null)
{
showReward = new List<PeakReward>();
}
showReward.Add(new PeakReward());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
showReward[showReward.Count - 1].ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
state = 0;
oldScore = 0;
incrScore = 0;
enemyName = null;
if(showReward != null)
{
showReward.Clear();
}
}
public int state;
public int oldScore;
public int incrScore;
public string enemyName;
public List<PeakReward> showReward = new List<PeakReward>();
}
public partial class PeakCrossRole : 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 :
roleId = ProtoBufUtils.ReadInt64(ref readPos);
break;
case 2 :
name = ProtoBufUtils.ReadString(ref readPos);
break;
case 3 :
platform = ProtoBufUtils.ReadString(ref readPos);
break;
case 4 :
serverId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 5 :
power = ProtoBufUtils.ReadInt64(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.WriteInt64(1,roleId);
ProtoBufUtils.WriteString(2,name);
ProtoBufUtils.WriteString(3,platform);
ProtoBufUtils.WriteInt32(4,serverId);
ProtoBufUtils.WriteInt64(5,power);
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
roleId = 0;
name = null;
platform = null;
serverId = 0;
power = 0;
}
public long roleId;
public string name;
public string platform;
public int serverId;
public long power;
}
public partial class ResUpdatePeakExp : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResUpdatePeakExp(this);
}
public const uint MsgID = 127110;
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:
expReward = ProtoBufUtils.ReadInt64(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
expReward = 0;
}
public long expReward;
}
public partial class G2PEnterPeakMatch : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_G2PEnterPeakMatch(this);
}
public const uint MsgID = 127301;
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(role == null)
{
role = new PeakCrossRole();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
role.ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(role != null)
{
role.Clear();
}
}
public PeakCrossRole role;
}
public partial class G2PCancelPeakMatch : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_G2PCancelPeakMatch(this);
}
public const uint MsgID = 127302;
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:
roleId = ProtoBufUtils.ReadInt64(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
roleId = 0;
}
public long roleId;
}
public partial class G2PPeakRankInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_G2PPeakRankInfo(this);
}
public const uint MsgID = 127303;
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(role == null)
{
role = new PeakCrossRole();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
role.ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(role != null)
{
role.Clear();
}
}
public PeakCrossRole role;
}
public partial class G2PPeakStageInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_G2PPeakStageInfo(this);
}
public const uint MsgID = 127304;
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(role == null)
{
role = new PeakCrossRole();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
role.ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(role != null)
{
role.Clear();
}
}
public PeakCrossRole role;
}
public partial class G2PPeakStageReward : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_G2PPeakStageReward(this);
}
public const uint MsgID = 127305;
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(role == null)
{
role = new PeakCrossRole();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
role.ReadMessage(ref readPos, totalCount);
break;
case 2:
stageId = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(role != null)
{
role.Clear();
}
stageId = 0;
}
public PeakCrossRole role;
public int stageId;
}
public partial class F2PPeakCloneResult : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_F2PPeakCloneResult(this);
}
public const uint MsgID = 127306;
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:
winId = ProtoBufUtils.ReadInt64(ref readPos);
break;
case 2:
loserId = ProtoBufUtils.ReadInt64(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
winId = 0;
loserId = 0;
}
public long winId;
public long loserId;
}
public partial class G2PPeakTimesReward : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_G2PPeakTimesReward(this);
}
public const uint MsgID = 127307;
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(role == null)
{
role = new PeakCrossRole();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
role.ReadMessage(ref readPos, totalCount);
break;
case 2:
times = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(role != null)
{
role.Clear();
}
times = 0;
}
public PeakCrossRole role;
public int times;
}
public partial class G2PPeakInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_G2PPeakInfo(this);
}
public const uint MsgID = 127308;
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(role == null)
{
role = new PeakCrossRole();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
role.ReadMessage(ref readPos, totalCount);
break;
case 2:
win = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3:
all = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 4:
dayExp = ProtoBufUtils.ReadInt64(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(role != null)
{
role.Clear();
}
win = 0;
all = 0;
dayExp = 0;
}
public PeakCrossRole role;
public int win;
public int all;
public long dayExp;
}
public partial class P2GPeakCloneResult : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_P2GPeakCloneResult(this);
}
public const uint MsgID = 127401;
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:
roleId = ProtoBufUtils.ReadInt64(ref readPos);
break;
case 2:
isWin = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3:
exp = ProtoBufUtils.ReadInt64(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
roleId = 0;
isWin = 0;
exp = 0;
}
public long roleId;
public int isWin;
public long exp;
}
public partial class P2GPeakStageReward : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_P2GPeakStageReward(this);
}
public const uint MsgID = 127402;
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:
isMail = ProtoBufUtils.ReadBoolean(ref readPos);
break;
case 2:
if(info == null)
{
info = new List<RewardInfo>();
}
info.Add(new RewardInfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
info[info.Count - 1].ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
isMail = false;
if(info != null)
{
info.Clear();
}
}
public bool isMail;
public List<RewardInfo> info = new List<RewardInfo>();
}
public partial class P2GPeakTimesReward : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_P2GPeakTimesReward(this);
}
public const uint MsgID = 127403;
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:
isMail = ProtoBufUtils.ReadBoolean(ref readPos);
break;
case 2:
if(info == null)
{
info = new List<RewardInfo>();
}
info.Add(new RewardInfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
info[info.Count - 1].ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
isMail = false;
if(info != null)
{
info.Clear();
}
}
public bool isMail;
public List<RewardInfo> info = new List<RewardInfo>();
}
}