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

944 lines
31 KiB
C#

using System.Collections.Generic;
using Thousandto.Plugins.Common;
using Thousandto.Code.Logic.Network;
namespace MSG_JJC
{
public partial class JJCobject : 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 :
rank = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3 :
name = ProtoBufUtils.ReadString(ref readPos);
break;
case 4 :
career = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 5 :
level = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 6 :
stateLv = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 7 :
fightPower = ProtoBufUtils.ReadInt64(ref readPos);
break;
case 8 :
nameMark = ProtoBufUtils.ReadBoolean(ref readPos);
break;
case 9 :
seckill = ProtoBufUtils.ReadBoolean(ref readPos);
break;
case 10 :
if(facade == null)
{
facade = new MSG_Common.FacadeAttribute();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
facade.ReadMessage(ref readPos, totalCount);
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.WriteInt32(2,rank);
ProtoBufUtils.WriteString(3,name);
ProtoBufUtils.WriteInt32(4,career);
ProtoBufUtils.WriteInt32(5,level);
ProtoBufUtils.WriteInt32(6,stateLv);
ProtoBufUtils.WriteInt64(7,fightPower);
ProtoBufUtils.WriteBoolean(8,nameMark);
ProtoBufUtils.WriteBoolean(9,seckill);
if(facade != null)
{
facade.WriteMessage(10);
}
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
roleID = 0;
rank = 0;
name = null;
career = 0;
level = 0;
stateLv = 0;
fightPower = 0;
nameMark = false;
seckill = false;
if(facade != null)
{
facade.Clear();
}
}
public ulong roleID;
public int rank;
public string name;
public int career;
public int level;
public int stateLv;
public long fightPower;
public bool nameMark;
public bool seckill;
public MSG_Common.FacadeAttribute facade;
}
public partial class Report : 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 :
time = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2 :
type = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3 :
name = ProtoBufUtils.ReadString(ref readPos);
break;
case 4 :
rank = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 5 :
lastRank = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 6 :
tiaozhao = ProtoBufUtils.ReadBoolean(ref readPos);
break;
case 7 :
nameMark = 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,time);
ProtoBufUtils.WriteInt32(2,type);
ProtoBufUtils.WriteString(3,name);
ProtoBufUtils.WriteInt32(4,rank);
ProtoBufUtils.WriteInt32(5,lastRank);
ProtoBufUtils.WriteBoolean(6,tiaozhao);
ProtoBufUtils.WriteBoolean(7,nameMark);
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
time = 0;
type = 0;
name = null;
rank = 0;
lastRank = 0;
tiaozhao = false;
nameMark = false;
}
public int time;
public int type;
public string name;
public int rank;
public int lastRank;
public bool tiaozhao;
public bool nameMark;
}
public partial class ReqOpenJJC : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 134201;
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 ReqChangeTarget : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 134202;
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 ReqChallenge : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 134203;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteUint64(1,targetID);
ProtoBufUtils.WriteBoolean(2,seckill);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
targetID = 0;
seckill = false;
}
public ulong targetID;
public bool seckill;
}
public partial class ReqGetAward : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 134204;
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 ReqAddChance : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 134205;
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 ReqGetYesterdayRank : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 134206;
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 ReqGetReport : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 134207;
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 ReqJJCexit : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 134208;
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 ReqGetFirstReward : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 134209;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteInt32(1,excelId);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
excelId = 0;
}
public int excelId;
}
public partial class ResOpenJJCresult : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResOpenJJCresult(this);
}
public const uint MsgID = 134101;
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:
rank = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2:
count = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3:
cd = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 4:
if(players == null)
{
players = new List<JJCobject>();
}
players.Add(new JJCobject());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
players[players.Count - 1].ReadMessage(ref readPos, totalCount);
break;
case 5:
if(rank123 == null)
{
rank123 = new List<JJCobject>();
}
rank123.Add(new JJCobject());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
rank123[rank123.Count - 1].ReadMessage(ref readPos, totalCount);
break;
case 6:
score = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
rank = 0;
count = 0;
cd = 0;
if(players != null)
{
players.Clear();
}
if(rank123 != null)
{
rank123.Clear();
}
score = 0;
}
public int rank;
public int count;
public int cd;
public List<JJCobject> players = new List<JJCobject>();
public List<JJCobject> rank123 = new List<JJCobject>();
public int score;
}
public partial class ResUpdateChance : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResUpdateChance(this);
}
public const uint MsgID = 134102;
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:
count = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2:
cd = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3:
rank = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
count = 0;
cd = 0;
rank = 0;
}
public int count;
public int cd;
public int rank;
}
public partial class ResUpdatePlayers : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResUpdatePlayers(this);
}
public const uint MsgID = 134103;
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(players == null)
{
players = new List<JJCobject>();
}
players.Add(new JJCobject());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
players[players.Count - 1].ReadMessage(ref readPos, totalCount);
break;
case 2:
if(rank123 == null)
{
rank123 = new List<JJCobject>();
}
rank123.Add(new JJCobject());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
rank123[rank123.Count - 1].ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(players != null)
{
players.Clear();
}
if(rank123 != null)
{
rank123.Clear();
}
}
public List<JJCobject> players = new List<JJCobject>();
public List<JJCobject> rank123 = new List<JJCobject>();
}
public partial class ResYesterdayRank : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResYesterdayRank(this);
}
public const uint MsgID = 134104;
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:
rank = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2:
state = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3:
time = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
rank = 0;
state = 0;
time = 0;
}
public int rank;
public int state;
public int time;
}
public partial class ResReports : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResReports(this);
}
public const uint MsgID = 134105;
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(reports == null)
{
reports = new List<Report>();
}
reports.Add(new Report());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
reports[reports.Count - 1].ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(reports != null)
{
reports.Clear();
}
}
public List<Report> reports = new List<Report>();
}
public partial class ResJJCTargetID : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResJJCTargetID(this);
}
public const uint MsgID = 134106;
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:
targetID = ProtoBufUtils.ReadUint64(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
targetID = 0;
}
public ulong targetID;
}
public partial class ResJJCBattleReport : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResJJCBattleReport(this);
}
public const uint MsgID = 134107;
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:
isSuc = ProtoBufUtils.ReadBoolean(ref readPos);
break;
case 2:
score = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3:
curRank = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 4:
name = ProtoBufUtils.ReadString(ref readPos);
break;
case 5:
if(rewardList == null)
{
rewardList = new List<long>();
}
rewardList.Add(ProtoBufUtils.ReadInt64(ref readPos));
break;
default:
break;
}
}
}
}
public void Clear()
{
isSuc = false;
score = 0;
curRank = 0;
name = null;
if(rewardList != null)
{
rewardList.Clear();
}
}
public bool isSuc;
public int score;
public int curRank;
public string name;
public List<long> rewardList = new List<long>();
}
public partial class ResOnlineJJCInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResOnlineJJCInfo(this);
}
public const uint MsgID = 134108;
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:
r_count = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2:
award = ProtoBufUtils.ReadBoolean(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
r_count = 0;
award = false;
}
public int r_count;
public bool award;
}
public partial class ResStartBattleRes : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResStartBattleRes(this);
}
public const uint MsgID = 134109;
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 ResGetFirstReward : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResGetFirstReward(this);
}
public const uint MsgID = 134110;
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(rewardList == null)
{
rewardList = new List<int>();
}
rewardList.Add(ProtoBufUtils.ReadInt32(ref readPos));
break;
case 2:
rank = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(rewardList != null)
{
rewardList.Clear();
}
rank = 0;
}
public List<int> rewardList = new List<int>();
public int rank;
}
public partial class ResBuyJJCTimes : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResBuyJJCTimes(this);
}
public const uint MsgID = 134111;
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:
buyTimes = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
buyTimes = 0;
}
public int buyTimes;
}
public partial class ReqOneKeySweep : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 134210;
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()
{
}
}
}