1414 lines
47 KiB
C#
1414 lines
47 KiB
C#
|
using System.Collections.Generic;
|
||
|
using Thousandto.Plugins.Common;
|
||
|
using Thousandto.Code.Logic.Network;
|
||
|
|
||
|
namespace MSG_Pet
|
||
|
{
|
||
|
public partial class PetInfo : 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 :
|
||
|
modelId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
curStage = 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,modelId);
|
||
|
ProtoBufUtils.WriteInt32(2,curStage);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
modelId = 0;
|
||
|
curStage = 0;
|
||
|
}
|
||
|
public int modelId;
|
||
|
public int curStage;
|
||
|
}
|
||
|
public partial class PetSoulInfo : 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 :
|
||
|
soulId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
soulLevel = 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,soulId);
|
||
|
ProtoBufUtils.WriteInt32(2,soulLevel);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
soulId = 0;
|
||
|
soulLevel = 0;
|
||
|
}
|
||
|
public int soulId;
|
||
|
public int soulLevel;
|
||
|
}
|
||
|
public partial class PetAssistantInfo : 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 :
|
||
|
assistantId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
petId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
if(cellList == null)
|
||
|
{
|
||
|
cellList = new List<PetAssistantCellInfo>();
|
||
|
}
|
||
|
cellList.Add(new PetAssistantCellInfo());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
cellList[cellList.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 4 :
|
||
|
strengthActiveId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 5 :
|
||
|
soulActiveId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 6 :
|
||
|
open = ProtoBufUtils.ReadBoolean(ref readPos);
|
||
|
break;
|
||
|
case 7 :
|
||
|
score = 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,assistantId);
|
||
|
ProtoBufUtils.WriteInt32(2,petId);
|
||
|
for (int i = 0; i < cellList.Count; i++)
|
||
|
{
|
||
|
if(cellList != null)
|
||
|
{
|
||
|
cellList[i].WriteMessage(3);
|
||
|
}
|
||
|
}
|
||
|
ProtoBufUtils.WriteInt32(4,strengthActiveId);
|
||
|
ProtoBufUtils.WriteInt32(5,soulActiveId);
|
||
|
ProtoBufUtils.WriteBoolean(6,open);
|
||
|
ProtoBufUtils.WriteInt32(7,score);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
assistantId = 0;
|
||
|
petId = 0;
|
||
|
if(cellList != null)
|
||
|
{
|
||
|
cellList.Clear();
|
||
|
}
|
||
|
strengthActiveId = 0;
|
||
|
soulActiveId = 0;
|
||
|
open = false;
|
||
|
score = 0;
|
||
|
}
|
||
|
public int assistantId;
|
||
|
public int petId;
|
||
|
public List<PetAssistantCellInfo> cellList = new List<PetAssistantCellInfo>();
|
||
|
public int strengthActiveId;
|
||
|
public int soulActiveId;
|
||
|
public bool open;
|
||
|
public int score;
|
||
|
}
|
||
|
public partial class PetAssistantCellInfo : 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 :
|
||
|
cellId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
if(equip == null)
|
||
|
{
|
||
|
equip = new MSG_backpack.ItemInfo();
|
||
|
}
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
equip.ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 3 :
|
||
|
strengthLv = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4 :
|
||
|
soulLv = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 5 :
|
||
|
open = 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,cellId);
|
||
|
if(equip != null)
|
||
|
{
|
||
|
equip.WriteMessage(2);
|
||
|
}
|
||
|
ProtoBufUtils.WriteInt32(3,strengthLv);
|
||
|
ProtoBufUtils.WriteInt32(4,soulLv);
|
||
|
ProtoBufUtils.WriteBoolean(5,open);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
cellId = 0;
|
||
|
if(equip != null)
|
||
|
{
|
||
|
equip.Clear();
|
||
|
}
|
||
|
strengthLv = 0;
|
||
|
soulLv = 0;
|
||
|
open = false;
|
||
|
}
|
||
|
public int cellId;
|
||
|
public MSG_backpack.ItemInfo equip;
|
||
|
public int strengthLv;
|
||
|
public int soulLv;
|
||
|
public bool open;
|
||
|
}
|
||
|
public partial class ResSyncPet : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResSyncPet(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 507101;
|
||
|
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(pet == null)
|
||
|
{
|
||
|
pet = new PetInfo();
|
||
|
}
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
pet.ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 2:
|
||
|
fight = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
if(pet != null)
|
||
|
{
|
||
|
pet.Clear();
|
||
|
}
|
||
|
fight = 0;
|
||
|
}
|
||
|
public PetInfo pet;
|
||
|
public int fight;
|
||
|
}
|
||
|
public partial class ResBattlePet : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResBattlePet(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 507102;
|
||
|
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:
|
||
|
battlePetId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
battlePetId = 0;
|
||
|
}
|
||
|
public int battlePetId;
|
||
|
}
|
||
|
public partial class ResPetList : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResPetList(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 507103;
|
||
|
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:
|
||
|
curLevel = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
curExp = ProtoBufUtils.ReadInt64(ref readPos);
|
||
|
break;
|
||
|
case 3:
|
||
|
if(petList == null)
|
||
|
{
|
||
|
petList = new List<PetInfo>();
|
||
|
}
|
||
|
petList.Add(new PetInfo());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
petList[petList.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 4:
|
||
|
if(soulList == null)
|
||
|
{
|
||
|
soulList = new List<PetSoulInfo>();
|
||
|
}
|
||
|
soulList.Add(new PetSoulInfo());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
soulList[soulList.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 5:
|
||
|
battlePetId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 6:
|
||
|
funcOpen = ProtoBufUtils.ReadBoolean(ref readPos);
|
||
|
break;
|
||
|
case 7:
|
||
|
if(assistantList == null)
|
||
|
{
|
||
|
assistantList = new List<PetAssistantInfo>();
|
||
|
}
|
||
|
assistantList.Add(new PetAssistantInfo());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
assistantList[assistantList.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 8:
|
||
|
autoSet = ProtoBufUtils.ReadBoolean(ref readPos);
|
||
|
break;
|
||
|
case 9:
|
||
|
autocolor = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 10:
|
||
|
autoStar = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
curLevel = 0;
|
||
|
curExp = 0;
|
||
|
if(petList != null)
|
||
|
{
|
||
|
petList.Clear();
|
||
|
}
|
||
|
if(soulList != null)
|
||
|
{
|
||
|
soulList.Clear();
|
||
|
}
|
||
|
battlePetId = 0;
|
||
|
funcOpen = false;
|
||
|
if(assistantList != null)
|
||
|
{
|
||
|
assistantList.Clear();
|
||
|
}
|
||
|
autoSet = false;
|
||
|
autocolor = 0;
|
||
|
autoStar = 0;
|
||
|
}
|
||
|
public int curLevel;
|
||
|
public long curExp;
|
||
|
public List<PetInfo> petList = new List<PetInfo>();
|
||
|
public List<PetSoulInfo> soulList = new List<PetSoulInfo>();
|
||
|
public int battlePetId;
|
||
|
public bool funcOpen;
|
||
|
public List<PetAssistantInfo> assistantList = new List<PetAssistantInfo>();
|
||
|
public bool autoSet;
|
||
|
public int autocolor;
|
||
|
public int autoStar;
|
||
|
}
|
||
|
public partial class ResEatEquip : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResEatEquip(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 507104;
|
||
|
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:
|
||
|
curLevel = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
curExp = ProtoBufUtils.ReadInt64(ref readPos);
|
||
|
break;
|
||
|
case 3:
|
||
|
fight = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
curLevel = 0;
|
||
|
curExp = 0;
|
||
|
fight = 0;
|
||
|
}
|
||
|
public int curLevel;
|
||
|
public long curExp;
|
||
|
public int fight;
|
||
|
}
|
||
|
public partial class ResEatSoul : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResEatSoul(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 507105;
|
||
|
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(petSoulInfo == null)
|
||
|
{
|
||
|
petSoulInfo = new PetSoulInfo();
|
||
|
}
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
petSoulInfo.ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
if(petSoulInfo != null)
|
||
|
{
|
||
|
petSoulInfo.Clear();
|
||
|
}
|
||
|
}
|
||
|
public PetSoulInfo petSoulInfo;
|
||
|
}
|
||
|
public partial class ResAddPetSkill : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResAddPetSkill(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 507106;
|
||
|
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:
|
||
|
skillId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
skillId = 0;
|
||
|
}
|
||
|
public int skillId;
|
||
|
}
|
||
|
public partial class ResChangeAssiPet : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResChangeAssiPet(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 507107;
|
||
|
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:
|
||
|
petModelId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
assistantId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
petModelId = 0;
|
||
|
assistantId = 0;
|
||
|
}
|
||
|
public int petModelId;
|
||
|
public int assistantId;
|
||
|
}
|
||
|
public partial class ResPetEquipWear : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResPetEquipWear(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 507108;
|
||
|
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:
|
||
|
equipId = ProtoBufUtils.ReadFixed64(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
assistantId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3:
|
||
|
cellId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4:
|
||
|
equipModelId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
equipId = 0;
|
||
|
assistantId = 0;
|
||
|
cellId = 0;
|
||
|
equipModelId = 0;
|
||
|
}
|
||
|
public ulong equipId;
|
||
|
public int assistantId;
|
||
|
public int cellId;
|
||
|
public int equipModelId;
|
||
|
}
|
||
|
public partial class ResPetEquipUnWear : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResPetEquipUnWear(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 507109;
|
||
|
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:
|
||
|
assistantId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
cellId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
assistantId = 0;
|
||
|
cellId = 0;
|
||
|
}
|
||
|
public int assistantId;
|
||
|
public int cellId;
|
||
|
}
|
||
|
public partial class ResPetEquipStrength : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResPetEquipStrength(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 507110;
|
||
|
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:
|
||
|
assistantId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
cellId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3:
|
||
|
strengthLv = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
assistantId = 0;
|
||
|
cellId = 0;
|
||
|
strengthLv = 0;
|
||
|
}
|
||
|
public int assistantId;
|
||
|
public int cellId;
|
||
|
public int strengthLv;
|
||
|
}
|
||
|
public partial class ResPetEquipSoul : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResPetEquipSoul(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 507111;
|
||
|
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:
|
||
|
assistantId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
cellId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3:
|
||
|
soulLv = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
assistantId = 0;
|
||
|
cellId = 0;
|
||
|
soulLv = 0;
|
||
|
}
|
||
|
public int assistantId;
|
||
|
public int cellId;
|
||
|
public int soulLv;
|
||
|
}
|
||
|
public partial class ResPetEquipActiveInten : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResPetEquipActiveInten(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 507112;
|
||
|
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:
|
||
|
assistantId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
strengthActiveId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
assistantId = 0;
|
||
|
strengthActiveId = 0;
|
||
|
}
|
||
|
public int assistantId;
|
||
|
public int strengthActiveId;
|
||
|
}
|
||
|
public partial class ResPetEquipActiveSoul : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResPetEquipActiveSoul(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 507113;
|
||
|
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:
|
||
|
assistantId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
soulActiveId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
assistantId = 0;
|
||
|
soulActiveId = 0;
|
||
|
}
|
||
|
public int assistantId;
|
||
|
public int soulActiveId;
|
||
|
}
|
||
|
public partial class ResPetEquipSynthesis : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResPetEquipSynthesis(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 507114;
|
||
|
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:
|
||
|
success = ProtoBufUtils.ReadBoolean(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
assistantId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3:
|
||
|
cellId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4:
|
||
|
if(newEquip == null)
|
||
|
{
|
||
|
newEquip = new MSG_backpack.ItemInfo();
|
||
|
}
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
newEquip.ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
success = false;
|
||
|
assistantId = 0;
|
||
|
cellId = 0;
|
||
|
if(newEquip != null)
|
||
|
{
|
||
|
newEquip.Clear();
|
||
|
}
|
||
|
}
|
||
|
public bool success;
|
||
|
public int assistantId;
|
||
|
public int cellId;
|
||
|
public MSG_backpack.ItemInfo newEquip;
|
||
|
}
|
||
|
public partial class ResPetEquipDecomposeSetting : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResPetEquipDecomposeSetting(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 507115;
|
||
|
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:
|
||
|
set = ProtoBufUtils.ReadBoolean(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
set = false;
|
||
|
}
|
||
|
public bool set;
|
||
|
}
|
||
|
public partial class ResPetAssistantScoreUpdate : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResPetAssistantScoreUpdate(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 507116;
|
||
|
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:
|
||
|
assistantId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
score = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
assistantId = 0;
|
||
|
score = 0;
|
||
|
}
|
||
|
public int assistantId;
|
||
|
public int score;
|
||
|
}
|
||
|
public partial class ReqPetAction : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 507201;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,actType);
|
||
|
ProtoBufUtils.WriteInt32(2,modelId);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
actType = 0;
|
||
|
modelId = 0;
|
||
|
}
|
||
|
public int actType;
|
||
|
public int modelId;
|
||
|
}
|
||
|
public partial class ReqEatEquip : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 507202;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,itemId);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
itemId = 0;
|
||
|
}
|
||
|
public int itemId;
|
||
|
}
|
||
|
public partial class ReqEatSoul : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 507203;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,soulId);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
soulId = 0;
|
||
|
}
|
||
|
public int soulId;
|
||
|
}
|
||
|
public partial class ReqChangeAssiPet : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 507204;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,petModelId);
|
||
|
ProtoBufUtils.WriteInt32(2,assistantId);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
petModelId = 0;
|
||
|
assistantId = 0;
|
||
|
}
|
||
|
public int petModelId;
|
||
|
public int assistantId;
|
||
|
}
|
||
|
public partial class ReqPetEquipWear : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 507205;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteFixed64(1,equipId);
|
||
|
ProtoBufUtils.WriteInt32(2,assistantId);
|
||
|
ProtoBufUtils.WriteInt32(3,cellId);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
equipId = 0;
|
||
|
assistantId = 0;
|
||
|
cellId = 0;
|
||
|
}
|
||
|
public ulong equipId;
|
||
|
public int assistantId;
|
||
|
public int cellId;
|
||
|
}
|
||
|
public partial class ReqPetEquipUnWear : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 507206;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,assistantId);
|
||
|
ProtoBufUtils.WriteInt32(2,cellId);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
assistantId = 0;
|
||
|
cellId = 0;
|
||
|
}
|
||
|
public int assistantId;
|
||
|
public int cellId;
|
||
|
}
|
||
|
public partial class ReqPetEquipStrength : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 507207;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,assistantId);
|
||
|
ProtoBufUtils.WriteInt32(2,cellId);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
assistantId = 0;
|
||
|
cellId = 0;
|
||
|
}
|
||
|
public int assistantId;
|
||
|
public int cellId;
|
||
|
}
|
||
|
public partial class ReqPetEquipSoul : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 507208;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,assistantId);
|
||
|
ProtoBufUtils.WriteInt32(2,cellId);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
assistantId = 0;
|
||
|
cellId = 0;
|
||
|
}
|
||
|
public int assistantId;
|
||
|
public int cellId;
|
||
|
}
|
||
|
public partial class ReqPetEquipActiveInten : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 507209;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,assistantId);
|
||
|
ProtoBufUtils.WriteInt32(2,strengthActiveId);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
assistantId = 0;
|
||
|
strengthActiveId = 0;
|
||
|
}
|
||
|
public int assistantId;
|
||
|
public int strengthActiveId;
|
||
|
}
|
||
|
public partial class ReqPetEquipActiveSoul : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 507210;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,assistantId);
|
||
|
ProtoBufUtils.WriteInt32(2,soulActiveId);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
assistantId = 0;
|
||
|
soulActiveId = 0;
|
||
|
}
|
||
|
public int assistantId;
|
||
|
public int soulActiveId;
|
||
|
}
|
||
|
public partial class ReqPetEquipSynthesis : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 507211;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,assistantId);
|
||
|
ProtoBufUtils.WriteInt32(2,cellId);
|
||
|
for (int i = 0; i < equips.Count; i++)
|
||
|
{
|
||
|
ProtoBufUtils.WriteInt64(3,equips[i]);
|
||
|
}
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
assistantId = 0;
|
||
|
cellId = 0;
|
||
|
if(equips != null)
|
||
|
{
|
||
|
equips.Clear();
|
||
|
}
|
||
|
}
|
||
|
public int assistantId;
|
||
|
public int cellId;
|
||
|
public List<long> equips = new List<long>();
|
||
|
}
|
||
|
public partial class ReqPetEquipDecompose : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 507212;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
for (int i = 0; i < equipId.Count; i++)
|
||
|
{
|
||
|
ProtoBufUtils.WriteFixed64(1,equipId[i]);
|
||
|
}
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
if(equipId != null)
|
||
|
{
|
||
|
equipId.Clear();
|
||
|
}
|
||
|
}
|
||
|
public List<ulong> equipId = new List<ulong>();
|
||
|
}
|
||
|
public partial class ReqPetEquipDecomposeSetting : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 507213;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteBoolean(1,set);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
set = false;
|
||
|
}
|
||
|
public bool set;
|
||
|
}
|
||
|
public partial class ReqActivePetEquipSlot : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 507214;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,slotId);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
slotId = 0;
|
||
|
}
|
||
|
public int slotId;
|
||
|
}
|
||
|
}
|
||
|
|