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

1545 lines
54 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_SoulAnimalForest
{
public partial class forestBossInfo : 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 :
type = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 4 :
num = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 5 :
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.WriteInt32(3,type);
ProtoBufUtils.WriteInt32(4,num);
ProtoBufUtils.WriteBoolean(5,isFollowed);
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
bossId = 0;
refreshTime = 0;
type = 0;
num = 0;
isFollowed = false;
}
public int bossId;
public int refreshTime;
public int type;
public int num;
public bool isFollowed;
}
public partial class ReqSoulAnimalForestLocalPanel : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 167201;
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 ResSoulAnimalForestLocalPanel : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResSoulAnimalForestLocalPanel(this);
}
public const uint MsgID = 167101;
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<forestBossInfo>();
}
bossList.Add(new forestBossInfo());
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;
case 5:
buyCount = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 6:
canBuyCount = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 7:
crystalHaveNum = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 8:
crystalBloodHaveNum = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
level = 0;
if(bossList != null)
{
bossList.Clear();
}
remainCount = 0;
maxCount = 0;
buyCount = 0;
canBuyCount = 0;
crystalHaveNum = 0;
crystalBloodHaveNum = 0;
}
public int level;
public List<forestBossInfo> bossList = new List<forestBossInfo>();
public int remainCount;
public int maxCount;
public int buyCount;
public int canBuyCount;
public int crystalHaveNum;
public int crystalBloodHaveNum;
}
public partial class ResSoulAnimalForestLocalRefreshInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResSoulAnimalForestLocalRefreshInfo(this);
}
public const uint MsgID = 167102;
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(bossRefreshList == null)
{
bossRefreshList = new List<forestBossInfo>();
}
bossRefreshList.Add(new forestBossInfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
bossRefreshList[bossRefreshList.Count - 1].ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(bossRefreshList != null)
{
bossRefreshList.Clear();
}
}
public List<forestBossInfo> bossRefreshList = new List<forestBossInfo>();
}
public partial class ResSoulAnimalForestLocalBossRefreshTip : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResSoulAnimalForestLocalBossRefreshTip(this);
}
public const uint MsgID = 167103;
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 ReqSoulAnimalForestCrossPanel : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 167204;
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 G2PReqSoulAnimalForestCrossPanel : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_G2PReqSoulAnimalForestCrossPanel(this);
}
public const uint MsgID = 167304;
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:
maxCount = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 4:
remainRankCount = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 5:
maxRankCount = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 6:
crystalHaveNum = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 7:
roleId = ProtoBufUtils.ReadInt64(ref readPos);
break;
case 8:
crystalBloodHaveNum = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
level = 0;
remainCount = 0;
maxCount = 0;
remainRankCount = 0;
maxRankCount = 0;
crystalHaveNum = 0;
roleId = 0;
crystalBloodHaveNum = 0;
}
public int level;
public int remainCount;
public int maxCount;
public int remainRankCount;
public int maxRankCount;
public int crystalHaveNum;
public long roleId;
public int crystalBloodHaveNum;
}
public partial class ResSoulAnimalForestCrossPanel : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResSoulAnimalForestCrossPanel(this);
}
public const uint MsgID = 167104;
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<forestBossInfo>();
}
bossList.Add(new forestBossInfo());
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;
case 5:
crystalHaveNum = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 6:
maxRankCount = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 7:
remainRankCount = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 8:
crystalBloodHaveNum = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 9:
mapPlayerNum = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
level = 0;
if(bossList != null)
{
bossList.Clear();
}
remainCount = 0;
maxCount = 0;
crystalHaveNum = 0;
maxRankCount = 0;
remainRankCount = 0;
crystalBloodHaveNum = 0;
mapPlayerNum = 0;
}
public int level;
public List<forestBossInfo> bossList = new List<forestBossInfo>();
public int remainCount;
public int maxCount;
public int crystalHaveNum;
public int maxRankCount;
public int remainRankCount;
public int crystalBloodHaveNum;
public int mapPlayerNum;
}
public partial class ResSoulAnimalForestCrossRefreshInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResSoulAnimalForestCrossRefreshInfo(this);
}
public const uint MsgID = 167105;
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(bossRefreshList == null)
{
bossRefreshList = new List<forestBossInfo>();
}
bossRefreshList.Add(new forestBossInfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
bossRefreshList[bossRefreshList.Count - 1].ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(bossRefreshList != null)
{
bossRefreshList.Clear();
}
}
public List<forestBossInfo> bossRefreshList = new List<forestBossInfo>();
}
public partial class ReqFollowSoulAnimalForestCrossBoss : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 167206;
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 G2PReqFollowSoulAnimalForestCrossBoss : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_G2PReqFollowSoulAnimalForestCrossBoss(this);
}
public const uint MsgID = 167306;
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;
case 4:
os = ProtoBufUtils.ReadString(ref readPos);
break;
case 5:
plat = ProtoBufUtils.ReadString(ref readPos);
break;
case 6:
sid = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
bossId = 0;
followValue = false;
roleId = 0;
os = null;
plat = null;
sid = 0;
}
public int bossId;
public bool followValue;
public long roleId;
public string os;
public string plat;
public int sid;
}
public partial class ResFollowSoulAnimalForestCrossBoss : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResFollowSoulAnimalForestCrossBoss(this);
}
public const uint MsgID = 167106;
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 P2GResSoulAnimalForestCrossBossRefreshTip : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_P2GResSoulAnimalForestCrossBossRefreshTip(this);
}
public const uint MsgID = 167405;
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 ResSoulAnimalForestCrossBossRefreshTip : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResSoulAnimalForestCrossBossRefreshTip(this);
}
public const uint MsgID = 167107;
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 F2PReqSoulAnimalForestBossInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_F2PReqSoulAnimalForestBossInfo(this);
}
public const uint MsgID = 167307;
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 crossBossInfo : 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 :
modelConfigId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2 :
nextTime = ProtoBufUtils.ReadInt64(ref readPos);
break;
case 3 :
dieTime = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 4 :
rebornTime = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 5 :
bornTime = ProtoBufUtils.ReadInt64(ref readPos);
break;
case 6 :
dieNum = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 7 :
maxNum = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 8 :
fightRoomId = 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.WriteInt32(1,modelConfigId);
ProtoBufUtils.WriteInt64(2,nextTime);
ProtoBufUtils.WriteInt32(3,dieTime);
ProtoBufUtils.WriteInt32(4,rebornTime);
ProtoBufUtils.WriteInt64(5,bornTime);
ProtoBufUtils.WriteInt32(6,dieNum);
ProtoBufUtils.WriteInt32(7,maxNum);
ProtoBufUtils.WriteInt64(8,fightRoomId);
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
modelConfigId = 0;
nextTime = 0;
dieTime = 0;
rebornTime = 0;
bornTime = 0;
dieNum = 0;
maxNum = 0;
fightRoomId = 0;
}
public int modelConfigId;
public long nextTime;
public int dieTime;
public int rebornTime;
public long bornTime;
public int dieNum;
public int maxNum;
public long fightRoomId;
}
public partial class crossCloneBossInfo : 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 :
cloneModelId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2 :
if(soulAnimalInfo == null)
{
soulAnimalInfo = new crossBossInfo();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
soulAnimalInfo.ReadMessage(ref readPos, totalCount);
break;
case 3 :
if(cloneSoulXue == null)
{
cloneSoulXue = new crossBossInfo();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
cloneSoulXue.ReadMessage(ref readPos, totalCount);
break;
case 4 :
if(cloneShouwei == null)
{
cloneShouwei = new crossBossInfo();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
cloneShouwei.ReadMessage(ref readPos, totalCount);
break;
case 5 :
if(bossList == null)
{
bossList = new List<crossBossInfo>();
}
bossList.Add(new crossBossInfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
bossList[bossList.Count - 1].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.WriteInt32(1,cloneModelId);
if(soulAnimalInfo != null)
{
soulAnimalInfo.WriteMessage(2);
}
if(cloneSoulXue != null)
{
cloneSoulXue.WriteMessage(3);
}
if(cloneShouwei != null)
{
cloneShouwei.WriteMessage(4);
}
for (int i = 0; i < bossList.Count; i++)
{
if(bossList != null)
{
bossList[i].WriteMessage(5);
}
}
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
cloneModelId = 0;
if(soulAnimalInfo != null)
{
soulAnimalInfo.Clear();
}
if(cloneSoulXue != null)
{
cloneSoulXue.Clear();
}
if(cloneShouwei != null)
{
cloneShouwei.Clear();
}
if(bossList != null)
{
bossList.Clear();
}
}
public int cloneModelId;
public crossBossInfo soulAnimalInfo;
public crossBossInfo cloneSoulXue;
public crossBossInfo cloneShouwei;
public List<crossBossInfo> bossList = new List<crossBossInfo>();
}
public partial class crossGroupBossInfo : 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 :
groupId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2 :
if(cloneBossInfo == null)
{
cloneBossInfo = new List<crossCloneBossInfo>();
}
cloneBossInfo.Add(new crossCloneBossInfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
cloneBossInfo[cloneBossInfo.Count - 1].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.WriteInt32(1,groupId);
for (int i = 0; i < cloneBossInfo.Count; i++)
{
if(cloneBossInfo != null)
{
cloneBossInfo[i].WriteMessage(2);
}
}
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
groupId = 0;
if(cloneBossInfo != null)
{
cloneBossInfo.Clear();
}
}
public int groupId;
public List<crossCloneBossInfo> cloneBossInfo = new List<crossCloneBossInfo>();
}
public partial class P2FResSoulAnimalForestBossInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_P2FResSoulAnimalForestBossInfo(this);
}
public const uint MsgID = 167407;
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(groupInfo == null)
{
groupInfo = new List<crossGroupBossInfo>();
}
groupInfo.Add(new crossGroupBossInfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
groupInfo[groupInfo.Count - 1].ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(groupInfo != null)
{
groupInfo.Clear();
}
}
public List<crossGroupBossInfo> groupInfo = new List<crossGroupBossInfo>();
}
public partial class F2PReqCloneMonsterDie : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_F2PReqCloneMonsterDie(this);
}
public const uint MsgID = 167308;
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:
type = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3:
modelConfigId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 4:
rebornBaseTime = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 5:
reBornTime = ProtoBufUtils.ReadInt64(ref readPos);
break;
case 6:
fightId = ProtoBufUtils.ReadInt64(ref readPos);
break;
case 7:
killer = ProtoBufUtils.ReadString(ref readPos);
break;
case 8:
groupId = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
cloneModelId = 0;
type = 0;
modelConfigId = 0;
rebornBaseTime = 0;
reBornTime = 0;
fightId = 0;
killer = null;
groupId = 0;
}
public int cloneModelId;
public int type;
public int modelConfigId;
public int rebornBaseTime;
public long reBornTime;
public long fightId;
public string killer;
public int groupId;
}
public partial class P2FResCloneMonsterDie : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_P2FResCloneMonsterDie(this);
}
public const uint MsgID = 167408;
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:
type = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3:
modelConfigId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 4:
fightId = ProtoBufUtils.ReadInt64(ref readPos);
break;
case 5:
state = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 6:
rebornBaseTime = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 7:
reBornTime = ProtoBufUtils.ReadInt64(ref readPos);
break;
case 8:
DieNum = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 9:
groupId = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
cloneModelId = 0;
type = 0;
modelConfigId = 0;
fightId = 0;
state = 0;
rebornBaseTime = 0;
reBornTime = 0;
DieNum = 0;
groupId = 0;
}
public int cloneModelId;
public int type;
public int modelConfigId;
public long fightId;
public int state;
public int rebornBaseTime;
public long reBornTime;
public int DieNum;
public int groupId;
}
public partial class P2FUpdateOneSoulAnimalForestBossInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_P2FUpdateOneSoulAnimalForestBossInfo(this);
}
public const uint MsgID = 167409;
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:
type = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2:
if(bossInfo == null)
{
bossInfo = new crossBossInfo();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
bossInfo.ReadMessage(ref readPos, totalCount);
break;
case 3:
fightRoomId = ProtoBufUtils.ReadInt64(ref readPos);
break;
case 4:
groupId = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
type = 0;
if(bossInfo != null)
{
bossInfo.Clear();
}
fightRoomId = 0;
groupId = 0;
}
public int type;
public crossBossInfo bossInfo;
public long fightRoomId;
public int groupId;
}
public partial class F2PUpdateOneSoulAnimalForestBossInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_F2PUpdateOneSoulAnimalForestBossInfo(this);
}
public const uint MsgID = 167309;
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:
type = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2:
if(bossInfo == null)
{
bossInfo = new crossBossInfo();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
bossInfo.ReadMessage(ref readPos, totalCount);
break;
case 3:
fightRoomId = ProtoBufUtils.ReadInt64(ref readPos);
break;
case 4:
groupId = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
type = 0;
if(bossInfo != null)
{
bossInfo.Clear();
}
fightRoomId = 0;
groupId = 0;
}
public int type;
public crossBossInfo bossInfo;
public long fightRoomId;
public int groupId;
}
public partial class F2PSoulAnimalCloneOpen : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_F2PSoulAnimalCloneOpen(this);
}
public const uint MsgID = 167310;
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:
if(bossIds == null)
{
bossIds = new List<int>();
}
bossIds.Add(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()
{
cloneModelId = 0;
if(bossIds != null)
{
bossIds.Clear();
}
fightRoomId = 0;
groupId = 0;
}
public int cloneModelId;
public List<int> bossIds = new List<int>();
public long fightRoomId;
public int groupId;
}
public partial class ReqCrossSoulAnimalForestBossKiller : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 167211;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteInt32(1,bossConfigId);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
bossConfigId = 0;
}
public int bossConfigId;
}
public partial class G2PReqCrossSoulAnimalForestBossKiller : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_G2PReqCrossSoulAnimalForestBossKiller(this);
}
public const uint MsgID = 167311;
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:
bossConfigId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2:
roleId = ProtoBufUtils.ReadInt64(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
bossConfigId = 0;
roleId = 0;
}
public int bossConfigId;
public long roleId;
}
public partial class soulAnimalForestBossKilledRecord : 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 :
killTime = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2 :
killer = 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.WriteInt32(1,killTime);
ProtoBufUtils.WriteString(2,killer);
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
killTime = 0;
killer = null;
}
public int killTime;
public string killer;
}
public partial class ResCrossSoulAnimalForestBossKiller : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResCrossSoulAnimalForestBossKiller(this);
}
public const uint MsgID = 167111;
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:
bossConfigId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2:
if(killerName == null)
{
killerName = new List<soulAnimalForestBossKilledRecord>();
}
killerName.Add(new soulAnimalForestBossKilledRecord());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
killerName[killerName.Count - 1].ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
bossConfigId = 0;
if(killerName != null)
{
killerName.Clear();
}
}
public int bossConfigId;
public List<soulAnimalForestBossKilledRecord> killerName = new List<soulAnimalForestBossKilledRecord>();
}
}