Files
Main/Assets/Code/Logic/_NetMessage/Messages/CrossHorseBossEx.cs
2025-01-25 04:38:09 +08:00

749 lines
24 KiB
C#

using System.Collections.Generic;
using Thousandto.Plugins.Common;
using Thousandto.Code.Logic.Network;
namespace MSG_CrossHorseBoss
{
public partial class HorseBossInfo : 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 :
bossId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2 :
refreshTime = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3 :
isFollowed = 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,bossId);
ProtoBufUtils.WriteInt32(2,refreshTime);
ProtoBufUtils.WriteBoolean(3,isFollowed);
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
bossId = 0;
refreshTime = 0;
isFollowed = false;
}
public int bossId;
public int refreshTime;
public bool isFollowed;
}
public partial class ReqCrossHorseBossPanel : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 535201;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteInt32(1,level);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
level = 0;
}
public int level;
}
public partial class ResCrossHorseBossPanel : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResCrossHorseBossPanel(this);
}
public const uint MsgID = 535101;
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:
level = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2:
if(bossList == null)
{
bossList = new List<HorseBossInfo>();
}
bossList.Add(new HorseBossInfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
bossList[bossList.Count - 1].ReadMessage(ref readPos, totalCount);
break;
case 3:
remainCount = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 4:
maxCount = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
level = 0;
if(bossList != null)
{
bossList.Clear();
}
remainCount = 0;
maxCount = 0;
}
public int level;
public List<HorseBossInfo> bossList = new List<HorseBossInfo>();
public int remainCount;
public int maxCount;
}
public partial class G2PReqCrossHorseBossPanel : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_G2PReqCrossHorseBossPanel(this);
}
public const uint MsgID = 535304;
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:
level = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2:
remainCount = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3:
roleId = ProtoBufUtils.ReadInt64(ref readPos);
break;
case 4:
maxCount = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
level = 0;
remainCount = 0;
roleId = 0;
maxCount = 0;
}
public int level;
public int remainCount;
public long roleId;
public int maxCount;
}
public partial class ReqFollowCrossHorseBoss : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 535206;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteInt32(1,bossId);
ProtoBufUtils.WriteBoolean(2,followValue);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
bossId = 0;
followValue = false;
}
public int bossId;
public bool followValue;
}
public partial class G2PReqFollowCrossHorseBoss : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_G2PReqFollowCrossHorseBoss(this);
}
public const uint MsgID = 535306;
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:
bossId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2:
followValue = ProtoBufUtils.ReadBoolean(ref readPos);
break;
case 3:
roleId = ProtoBufUtils.ReadInt64(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
bossId = 0;
followValue = false;
roleId = 0;
}
public int bossId;
public bool followValue;
public long roleId;
}
public partial class ResFollowCrossHorseBoss : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResFollowCrossHorseBoss(this);
}
public const uint MsgID = 535106;
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:
bossId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2:
followValue = ProtoBufUtils.ReadBoolean(ref readPos);
break;
case 3:
state = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
bossId = 0;
followValue = false;
state = 0;
}
public int bossId;
public bool followValue;
public int state;
}
public partial class ResCrossHorseBossRefreshTip : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResCrossHorseBossRefreshTip(this);
}
public const uint MsgID = 535107;
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:
bossId = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
bossId = 0;
}
public int bossId;
}
public partial class P2GResCrossHorseBossRefreshTip : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_P2GResCrossHorseBossRefreshTip(this);
}
public const uint MsgID = 535401;
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:
bossId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2:
if(roleIds == null)
{
roleIds = new List<long>();
}
roleIds.Add(ProtoBufUtils.ReadInt64(ref readPos));
break;
default:
break;
}
}
}
}
public void Clear()
{
bossId = 0;
if(roleIds != null)
{
roleIds.Clear();
}
}
public int bossId;
public List<long> roleIds = new List<long>();
}
public partial class F2PReqCrossHorseBossDie : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_F2PReqCrossHorseBossDie(this);
}
public const uint MsgID = 535308;
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:
cloneModelId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2:
modelConfigId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3:
fightId = ProtoBufUtils.ReadInt64(ref readPos);
break;
case 4:
groupId = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
cloneModelId = 0;
modelConfigId = 0;
fightId = 0;
groupId = 0;
}
public int cloneModelId;
public int modelConfigId;
public long fightId;
public int groupId;
}
public partial class F2PCrossHorseBossCloneOpen : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_F2PCrossHorseBossCloneOpen(this);
}
public const uint MsgID = 535310;
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:
cloneType = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2:
cfgID = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3:
fightRoomId = ProtoBufUtils.ReadInt64(ref readPos);
break;
case 4:
groupId = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
cloneType = 0;
cfgID = 0;
fightRoomId = 0;
groupId = 0;
}
public int cloneType;
public int cfgID;
public long fightRoomId;
public int groupId;
}
public partial class ReqCancelAffiliation : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 535207;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteInt32(1,cfgId);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
cfgId = 0;
}
public int cfgId;
}
public partial class G2FReqCancelAffiliation : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_G2FReqCancelAffiliation(this);
}
public const uint MsgID = 535311;
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:
playerId = ProtoBufUtils.ReadInt64(ref readPos);
break;
case 2:
cfgId = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
playerId = 0;
cfgId = 0;
}
public long playerId;
public int cfgId;
}
public partial class ResCancelAffiliationResult : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResCancelAffiliationResult(this);
}
public const uint MsgID = 535108;
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:
playerId = ProtoBufUtils.ReadInt64(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
playerId = 0;
}
public long playerId;
}
public partial class G2PReqEnterHorseBoss : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_G2PReqEnterHorseBoss(this);
}
public const uint MsgID = 535312;
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:
playerId = ProtoBufUtils.ReadInt64(ref readPos);
break;
case 2:
cfgID = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
playerId = 0;
cfgID = 0;
}
public long playerId;
public int cfgID;
}
public partial class ResCrossHorseMapOverTime : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResCrossHorseMapOverTime(this);
}
public const uint MsgID = 535109;
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:
overTime = ProtoBufUtils.ReadInt64(ref readPos);
break;
case 2:
cfgId = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
overTime = 0;
cfgId = 0;
}
public long overTime;
public int cfgId;
}
public partial class ResCrossBossDie : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResCrossBossDie(this);
}
public const uint MsgID = 535110;
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:
cfgID = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
cfgID = 0;
}
public int cfgID;
}
}