Files
Main/Assets/Code/Logic/_NetMessage/Messages/CrossResourceWarEx.cs

594 lines
20 KiB
C#
Raw Permalink Normal View History

2025-01-25 04:38:09 +08:00
using System.Collections.Generic;
using Thousandto.Plugins.Common;
using Thousandto.Code.Logic.Network;
namespace MSG_CrossResourceWar
{
public partial class ReqRWBaoMing : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 302201;
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 G2PReqRWBaoMing : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_G2PReqRWBaoMing(this);
}
public const uint MsgID = 302301;
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:
roldId = ProtoBufUtils.ReadFixed64(ref readPos);
break;
case 2:
roleName = ProtoBufUtils.ReadString(ref readPos);
break;
case 3:
level = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
roldId = 0;
roleName = null;
level = 0;
}
public ulong roldId;
public string roleName;
public int level;
}
public partial class P2GResBaoMing : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_P2GResBaoMing(this);
}
public const uint MsgID = 302401;
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.ReadFixed64(ref readPos);
break;
case 2:
state = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3:
entertime = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
roleId = 0;
state = 0;
entertime = 0;
}
public ulong roleId;
public int state;
public int entertime;
}
public partial class ResRWBaoMingState : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResRWBaoMingState(this);
}
public const uint MsgID = 302101;
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:
group_id = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3:
entertime = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
state = 0;
group_id = 0;
entertime = 0;
}
public int state;
public int group_id;
public int entertime;
}
public partial class ReqRWBaoMingState : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 302202;
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 G2PReqRWBaoMingState : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_G2PReqRWBaoMingState(this);
}
public const uint MsgID = 302302;
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:
roldId = ProtoBufUtils.ReadFixed64(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
roldId = 0;
}
public ulong roldId;
}
public partial class P2GRWChangeStateToAllServer : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_P2GRWChangeStateToAllServer(this);
}
public const uint MsgID = 302402;
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:
group_id = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2:
state = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3:
cloneValue = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 4:
opentime = ProtoBufUtils.ReadFixed64(ref readPos);
break;
case 5:
modelId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 6:
scriptId = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
group_id = 0;
state = 0;
cloneValue = 0;
opentime = 0;
modelId = 0;
scriptId = 0;
}
public int group_id;
public int state;
public int cloneValue;
public ulong opentime;
public int modelId;
public int scriptId;
}
public partial class ResCrossRWarCloneInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResCrossRWarCloneInfo(this);
}
public const uint MsgID = 302103;
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:
owner = ProtoBufUtils.ReadFixed64(ref readPos);
break;
case 2:
army = ProtoBufUtils.ReadFixed64(ref readPos);
break;
case 3:
maxplayerName = ProtoBufUtils.ReadString(ref readPos);
break;
case 4:
maxkillno = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 5:
roleId = ProtoBufUtils.ReadFixed64(ref readPos);
break;
case 6:
killno = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 7:
bekill = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
owner = 0;
army = 0;
maxplayerName = null;
maxkillno = 0;
roleId = 0;
killno = 0;
bekill = 0;
}
public ulong owner;
public ulong army;
public string maxplayerName;
public int maxkillno;
public ulong roleId;
public int killno;
public int bekill;
}
public partial class crossRWarPlayerinfo : 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.ReadFixed64(ref readPos);
break;
case 2 :
killno = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3 :
label = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 4 :
isNote = ProtoBufUtils.ReadBoolean(ref readPos);
break;
case 5 :
roleName = ProtoBufUtils.ReadString(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.WriteFixed64(1,roleId);
ProtoBufUtils.WriteInt32(2,killno);
ProtoBufUtils.WriteInt32(3,label);
ProtoBufUtils.WriteBoolean(4,isNote);
ProtoBufUtils.WriteString(5,roleName);
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
roleId = 0;
killno = 0;
label = 0;
isNote = false;
roleName = null;
}
public ulong roleId;
public int killno;
public int label;
public bool isNote;
public string roleName;
}
public partial class ResCrossRWarPlayerkillinfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResCrossRWarPlayerkillinfo(this);
}
public const uint MsgID = 302104;
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 crossRWarPlayerinfo();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
info.ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(info != null)
{
info.Clear();
}
}
public crossRWarPlayerinfo info;
}
public partial class ResCrossRWSecondToBegin : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResCrossRWSecondToBegin(this);
}
public const uint MsgID = 302106;
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:
endValue = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
endValue = 0;
}
public int endValue;
}
public partial class ResCrossRWarAllPlayerinfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResCrossRWarAllPlayerinfo(this);
}
public const uint MsgID = 302107;
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(infolist == null)
{
infolist = new List<crossRWarPlayerinfo>();
}
infolist.Add(new crossRWarPlayerinfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
infolist[infolist.Count - 1].ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(infolist != null)
{
infolist.Clear();
}
}
public List<crossRWarPlayerinfo> infolist = new List<crossRWarPlayerinfo>();
}
public partial class ResCrossRWShowEnd : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResCrossRWShowEnd(this);
}
public const uint MsgID = 302108;
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()
{
}
}
}