949 lines
33 KiB
C#
949 lines
33 KiB
C#
|
using System.Collections.Generic;
|
||
|
using Thousandto.Plugins.Common;
|
||
|
using Thousandto.Code.Logic.Network;
|
||
|
|
||
|
namespace MSG_Nature
|
||
|
{
|
||
|
public partial class natureInfo : 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 :
|
||
|
curLevel = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
curExp = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
modelId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4 :
|
||
|
if(haveActiveSkill == null)
|
||
|
{
|
||
|
haveActiveSkill = new List<natureSkillInfo>();
|
||
|
}
|
||
|
haveActiveSkill.Add(new natureSkillInfo());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
haveActiveSkill[haveActiveSkill.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 5 :
|
||
|
if(fruitInfo == null)
|
||
|
{
|
||
|
fruitInfo = new List<natureDrugInfo>();
|
||
|
}
|
||
|
fruitInfo.Add(new natureDrugInfo());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
fruitInfo[fruitInfo.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 6 :
|
||
|
if(outlineInfo == null)
|
||
|
{
|
||
|
outlineInfo = new List<natureOutlineInfo>();
|
||
|
}
|
||
|
outlineInfo.Add(new natureOutlineInfo());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
outlineInfo[outlineInfo.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 7 :
|
||
|
if(WeaponsInfo == null)
|
||
|
{
|
||
|
WeaponsInfo = new List<natureWeaponsInfo>();
|
||
|
}
|
||
|
WeaponsInfo.Add(new natureWeaponsInfo());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
WeaponsInfo[WeaponsInfo.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 8 :
|
||
|
if(haveActiveModel == null)
|
||
|
{
|
||
|
haveActiveModel = new List<int>();
|
||
|
}
|
||
|
haveActiveModel.Add(ProtoBufUtils.ReadInt32(ref readPos));
|
||
|
break;
|
||
|
case 9 :
|
||
|
fight = 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,curLevel);
|
||
|
ProtoBufUtils.WriteInt32(2,curExp);
|
||
|
ProtoBufUtils.WriteInt32(3,modelId);
|
||
|
for (int i = 0; i < haveActiveSkill.Count; i++)
|
||
|
{
|
||
|
if(haveActiveSkill != null)
|
||
|
{
|
||
|
haveActiveSkill[i].WriteMessage(4);
|
||
|
}
|
||
|
}
|
||
|
for (int i = 0; i < fruitInfo.Count; i++)
|
||
|
{
|
||
|
if(fruitInfo != null)
|
||
|
{
|
||
|
fruitInfo[i].WriteMessage(5);
|
||
|
}
|
||
|
}
|
||
|
for (int i = 0; i < outlineInfo.Count; i++)
|
||
|
{
|
||
|
if(outlineInfo != null)
|
||
|
{
|
||
|
outlineInfo[i].WriteMessage(6);
|
||
|
}
|
||
|
}
|
||
|
for (int i = 0; i < WeaponsInfo.Count; i++)
|
||
|
{
|
||
|
if(WeaponsInfo != null)
|
||
|
{
|
||
|
WeaponsInfo[i].WriteMessage(7);
|
||
|
}
|
||
|
}
|
||
|
for (int i = 0; i < haveActiveModel.Count; i++)
|
||
|
{
|
||
|
ProtoBufUtils.WriteInt32(8,haveActiveModel[i]);
|
||
|
}
|
||
|
ProtoBufUtils.WriteInt32(9,fight);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
curLevel = 0;
|
||
|
curExp = 0;
|
||
|
modelId = 0;
|
||
|
if(haveActiveSkill != null)
|
||
|
{
|
||
|
haveActiveSkill.Clear();
|
||
|
}
|
||
|
if(fruitInfo != null)
|
||
|
{
|
||
|
fruitInfo.Clear();
|
||
|
}
|
||
|
if(outlineInfo != null)
|
||
|
{
|
||
|
outlineInfo.Clear();
|
||
|
}
|
||
|
if(WeaponsInfo != null)
|
||
|
{
|
||
|
WeaponsInfo.Clear();
|
||
|
}
|
||
|
if(haveActiveModel != null)
|
||
|
{
|
||
|
haveActiveModel.Clear();
|
||
|
}
|
||
|
fight = 0;
|
||
|
}
|
||
|
public int curLevel;
|
||
|
public int curExp;
|
||
|
public int modelId;
|
||
|
public List<natureSkillInfo> haveActiveSkill = new List<natureSkillInfo>();
|
||
|
public List<natureDrugInfo> fruitInfo = new List<natureDrugInfo>();
|
||
|
public List<natureOutlineInfo> outlineInfo = new List<natureOutlineInfo>();
|
||
|
public List<natureWeaponsInfo> WeaponsInfo = new List<natureWeaponsInfo>();
|
||
|
public List<int> haveActiveModel = new List<int>();
|
||
|
public int fight;
|
||
|
}
|
||
|
public partial class natureSkillInfo : 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 :
|
||
|
SkillType = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
Level = 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,SkillType);
|
||
|
ProtoBufUtils.WriteInt32(2,Level);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
SkillType = 0;
|
||
|
Level = 0;
|
||
|
}
|
||
|
public int SkillType;
|
||
|
public int Level;
|
||
|
}
|
||
|
public partial class natureDrugInfo : 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 :
|
||
|
fruitId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
level = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
eatnum = 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,fruitId);
|
||
|
ProtoBufUtils.WriteInt32(2,level);
|
||
|
ProtoBufUtils.WriteInt32(3,eatnum);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
fruitId = 0;
|
||
|
level = 0;
|
||
|
eatnum = 0;
|
||
|
}
|
||
|
public int fruitId;
|
||
|
public int level;
|
||
|
public int eatnum;
|
||
|
}
|
||
|
public partial class natureWeaponsInfo : 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 :
|
||
|
id = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
value = 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,id);
|
||
|
ProtoBufUtils.WriteInt32(2,value);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
id = 0;
|
||
|
value = 0;
|
||
|
}
|
||
|
public int id;
|
||
|
public int value;
|
||
|
}
|
||
|
public partial class natureOutlineInfo : 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 :
|
||
|
id = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
level = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
fight = 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,id);
|
||
|
ProtoBufUtils.WriteInt32(2,level);
|
||
|
ProtoBufUtils.WriteInt32(3,fight);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
id = 0;
|
||
|
level = 0;
|
||
|
fight = 0;
|
||
|
}
|
||
|
public int id;
|
||
|
public int level;
|
||
|
public int fight;
|
||
|
}
|
||
|
public partial class ReqNatureInfo : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 175201;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,natureType);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
natureType = 0;
|
||
|
}
|
||
|
public int natureType;
|
||
|
}
|
||
|
public partial class ResNatureInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResNatureInfo(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 175101;
|
||
|
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:
|
||
|
natureType = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
if(natureInfo == null)
|
||
|
{
|
||
|
natureInfo = new natureInfo();
|
||
|
}
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
natureInfo.ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
natureType = 0;
|
||
|
if(natureInfo != null)
|
||
|
{
|
||
|
natureInfo.Clear();
|
||
|
}
|
||
|
}
|
||
|
public int natureType;
|
||
|
public natureInfo natureInfo;
|
||
|
}
|
||
|
public partial class ReqNatureUpLevel : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 175202;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,natureType);
|
||
|
ProtoBufUtils.WriteInt32(2,itemid);
|
||
|
ProtoBufUtils.WriteBoolean(3,isOneKeyUp);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
natureType = 0;
|
||
|
itemid = 0;
|
||
|
isOneKeyUp = false;
|
||
|
}
|
||
|
public int natureType;
|
||
|
public int itemid;
|
||
|
public bool isOneKeyUp;
|
||
|
}
|
||
|
public partial class ResNatureUpLevel : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResNatureUpLevel(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 175102;
|
||
|
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:
|
||
|
natureType = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
if(activeSkill == null)
|
||
|
{
|
||
|
activeSkill = new List<natureSkillInfo>();
|
||
|
}
|
||
|
activeSkill.Add(new natureSkillInfo());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
activeSkill[activeSkill.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 3:
|
||
|
level = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4:
|
||
|
if(activeModel == null)
|
||
|
{
|
||
|
activeModel = new List<int>();
|
||
|
}
|
||
|
activeModel.Add(ProtoBufUtils.ReadInt32(ref readPos));
|
||
|
break;
|
||
|
case 5:
|
||
|
curexp = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 6:
|
||
|
if(WeaponsInfo == null)
|
||
|
{
|
||
|
WeaponsInfo = new List<natureWeaponsInfo>();
|
||
|
}
|
||
|
WeaponsInfo.Add(new natureWeaponsInfo());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
WeaponsInfo[WeaponsInfo.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 7:
|
||
|
fight = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
natureType = 0;
|
||
|
if(activeSkill != null)
|
||
|
{
|
||
|
activeSkill.Clear();
|
||
|
}
|
||
|
level = 0;
|
||
|
if(activeModel != null)
|
||
|
{
|
||
|
activeModel.Clear();
|
||
|
}
|
||
|
curexp = 0;
|
||
|
if(WeaponsInfo != null)
|
||
|
{
|
||
|
WeaponsInfo.Clear();
|
||
|
}
|
||
|
fight = 0;
|
||
|
}
|
||
|
public int natureType;
|
||
|
public List<natureSkillInfo> activeSkill = new List<natureSkillInfo>();
|
||
|
public int level;
|
||
|
public List<int> activeModel = new List<int>();
|
||
|
public int curexp;
|
||
|
public List<natureWeaponsInfo> WeaponsInfo = new List<natureWeaponsInfo>();
|
||
|
public int fight;
|
||
|
}
|
||
|
public partial class ReqNatureDrug : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 175203;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,natureType);
|
||
|
ProtoBufUtils.WriteInt32(2,itemid);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
natureType = 0;
|
||
|
itemid = 0;
|
||
|
}
|
||
|
public int natureType;
|
||
|
public int itemid;
|
||
|
}
|
||
|
public partial class ResNatureDrug : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResNatureDrug(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 175103;
|
||
|
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:
|
||
|
natureType = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
if(druginfo == null)
|
||
|
{
|
||
|
druginfo = new natureDrugInfo();
|
||
|
}
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
druginfo.ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 3:
|
||
|
fight = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
natureType = 0;
|
||
|
if(druginfo != null)
|
||
|
{
|
||
|
druginfo.Clear();
|
||
|
}
|
||
|
fight = 0;
|
||
|
}
|
||
|
public int natureType;
|
||
|
public natureDrugInfo druginfo;
|
||
|
public int fight;
|
||
|
}
|
||
|
public partial class ReqNatureModelSet : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 175204;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,natureType);
|
||
|
ProtoBufUtils.WriteInt32(2,modelId);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
natureType = 0;
|
||
|
modelId = 0;
|
||
|
}
|
||
|
public int natureType;
|
||
|
public int modelId;
|
||
|
}
|
||
|
public partial class ResNatureModelSet : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResNatureModelSet(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 175104;
|
||
|
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:
|
||
|
natureType = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
modelId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
natureType = 0;
|
||
|
modelId = 0;
|
||
|
}
|
||
|
public int natureType;
|
||
|
public int modelId;
|
||
|
}
|
||
|
public partial class ReqNatureFashionUpLevel : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 175205;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,natureType);
|
||
|
ProtoBufUtils.WriteInt32(2,id);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
natureType = 0;
|
||
|
id = 0;
|
||
|
}
|
||
|
public int natureType;
|
||
|
public int id;
|
||
|
}
|
||
|
public partial class ResNatureFashionUpLevel : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResNatureFashionUpLevel(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 175105;
|
||
|
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:
|
||
|
natureType = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
if(info == null)
|
||
|
{
|
||
|
info = new natureOutlineInfo();
|
||
|
}
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
info.ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
natureType = 0;
|
||
|
if(info != null)
|
||
|
{
|
||
|
info.Clear();
|
||
|
}
|
||
|
}
|
||
|
public int natureType;
|
||
|
public natureOutlineInfo info;
|
||
|
}
|
||
|
public partial class itemOnlyInfo : 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 :
|
||
|
itemOnlyId = ProtoBufUtils.ReadInt64(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
num = 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.WriteInt64(1,itemOnlyId);
|
||
|
ProtoBufUtils.WriteInt32(2,num);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
itemOnlyId = 0;
|
||
|
num = 0;
|
||
|
}
|
||
|
public long itemOnlyId;
|
||
|
public int num;
|
||
|
}
|
||
|
public partial class itemModelInfo : 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 :
|
||
|
itemModelId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
num = 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,itemModelId);
|
||
|
ProtoBufUtils.WriteInt32(2,num);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
itemModelId = 0;
|
||
|
num = 0;
|
||
|
}
|
||
|
public int itemModelId;
|
||
|
public int num;
|
||
|
}
|
||
|
public partial class ResNatureModelIdChange : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResNatureModelIdChange(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 175106;
|
||
|
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:
|
||
|
playerid = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 3:
|
||
|
modelid = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4:
|
||
|
natureId = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
type = 0;
|
||
|
playerid = 0;
|
||
|
modelid = 0;
|
||
|
natureId = 0;
|
||
|
}
|
||
|
public int type;
|
||
|
public ulong playerid;
|
||
|
public int modelid;
|
||
|
public ulong natureId;
|
||
|
}
|
||
|
public partial class ResPowerChange : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResPowerChange(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 175107;
|
||
|
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:
|
||
|
natureType = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
fight = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
natureType = 0;
|
||
|
fight = 0;
|
||
|
}
|
||
|
public int natureType;
|
||
|
public int fight;
|
||
|
}
|
||
|
}
|
||
|
|