1749 lines
65 KiB
C#
1749 lines
65 KiB
C#
|
using System.Collections.Generic;
|
||
|
using Thousandto.Plugins.Common;
|
||
|
using Thousandto.Code.Logic.Network;
|
||
|
|
||
|
namespace MSG_Common
|
||
|
{
|
||
|
public partial class CrossRole : ProtoBuf.IMessageInfo, ProtoBuf.IExtensible
|
||
|
{
|
||
|
public void Send(){}
|
||
|
public void Excute(){}
|
||
|
public void ReadMessage(ref int readPos, int totalCount)
|
||
|
{
|
||
|
int endIndex = totalCount + readPos - 1;
|
||
|
while (readPos <= endIndex)
|
||
|
{
|
||
|
int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos);
|
||
|
switch (fieldNumber)
|
||
|
{
|
||
|
case 1 :
|
||
|
roleId = ProtoBufUtils.ReadInt64(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
name = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
platform = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 4 :
|
||
|
serverId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 5 :
|
||
|
power = ProtoBufUtils.ReadInt64(ref readPos);
|
||
|
break;
|
||
|
case 6 :
|
||
|
career = 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,roleId);
|
||
|
ProtoBufUtils.WriteString(2,name);
|
||
|
ProtoBufUtils.WriteString(3,platform);
|
||
|
ProtoBufUtils.WriteInt32(4,serverId);
|
||
|
ProtoBufUtils.WriteInt64(5,power);
|
||
|
ProtoBufUtils.WriteInt32(6,career);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
roleId = 0;
|
||
|
name = null;
|
||
|
platform = null;
|
||
|
serverId = 0;
|
||
|
power = 0;
|
||
|
career = 0;
|
||
|
}
|
||
|
public long roleId;
|
||
|
public string name;
|
||
|
public string platform;
|
||
|
public int serverId;
|
||
|
public long power;
|
||
|
public int career;
|
||
|
}
|
||
|
public partial class ShowItemInfo : 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 :
|
||
|
count = 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,modelId);
|
||
|
ProtoBufUtils.WriteInt64(2,count);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
modelId = 0;
|
||
|
count = 0;
|
||
|
}
|
||
|
public int modelId;
|
||
|
public long count;
|
||
|
}
|
||
|
public partial class GroundBuffMess : 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.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
modelId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
x = ProtoBufUtils.ReadFloat(ref readPos);
|
||
|
break;
|
||
|
case 4 :
|
||
|
y = ProtoBufUtils.ReadFloat(ref readPos);
|
||
|
break;
|
||
|
case 5 :
|
||
|
radius = ProtoBufUtils.ReadFloat(ref readPos);
|
||
|
break;
|
||
|
case 6 :
|
||
|
actType = 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.WriteUint64(1,id);
|
||
|
ProtoBufUtils.WriteInt32(2,modelId);
|
||
|
ProtoBufUtils.WriteFloat(3,x);
|
||
|
ProtoBufUtils.WriteFloat(4,y);
|
||
|
ProtoBufUtils.WriteFloat(5,radius);
|
||
|
ProtoBufUtils.WriteInt32(6,actType);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
id = 0;
|
||
|
modelId = 0;
|
||
|
x = 0;
|
||
|
y = 0;
|
||
|
radius = 0;
|
||
|
actType = 0;
|
||
|
}
|
||
|
public ulong id;
|
||
|
public int modelId;
|
||
|
public float x;
|
||
|
public float y;
|
||
|
public float radius;
|
||
|
public int actType;
|
||
|
}
|
||
|
public partial class Magic : 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.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
modelId = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
x = ProtoBufUtils.ReadFloat(ref readPos);
|
||
|
break;
|
||
|
case 4 :
|
||
|
y = ProtoBufUtils.ReadFloat(ref readPos);
|
||
|
break;
|
||
|
case 5 :
|
||
|
delay = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 6 :
|
||
|
radius = ProtoBufUtils.ReadFloat(ref readPos);
|
||
|
break;
|
||
|
case 7 :
|
||
|
ownerId = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 8 :
|
||
|
moveSpeedFinal = 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.WriteUint64(1,id);
|
||
|
ProtoBufUtils.WriteString(2,modelId);
|
||
|
ProtoBufUtils.WriteFloat(3,x);
|
||
|
ProtoBufUtils.WriteFloat(4,y);
|
||
|
ProtoBufUtils.WriteInt32(5,delay);
|
||
|
ProtoBufUtils.WriteFloat(6,radius);
|
||
|
ProtoBufUtils.WriteUint64(7,ownerId);
|
||
|
ProtoBufUtils.WriteInt32(8,moveSpeedFinal);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
id = 0;
|
||
|
modelId = null;
|
||
|
x = 0;
|
||
|
y = 0;
|
||
|
delay = 0;
|
||
|
radius = 0;
|
||
|
ownerId = 0;
|
||
|
moveSpeedFinal = 0;
|
||
|
}
|
||
|
public ulong id;
|
||
|
public string modelId;
|
||
|
public float x;
|
||
|
public float y;
|
||
|
public int delay;
|
||
|
public float radius;
|
||
|
public ulong ownerId;
|
||
|
public int moveSpeedFinal;
|
||
|
}
|
||
|
public partial class BonfireInfo : 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.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
bonfireId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
modelId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4 :
|
||
|
x = ProtoBufUtils.ReadFloat(ref readPos);
|
||
|
break;
|
||
|
case 5 :
|
||
|
y = ProtoBufUtils.ReadFloat(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.WriteUint64(1,id);
|
||
|
ProtoBufUtils.WriteInt32(2,bonfireId);
|
||
|
ProtoBufUtils.WriteInt32(3,modelId);
|
||
|
ProtoBufUtils.WriteFloat(4,x);
|
||
|
ProtoBufUtils.WriteFloat(5,y);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
id = 0;
|
||
|
bonfireId = 0;
|
||
|
modelId = 0;
|
||
|
x = 0;
|
||
|
y = 0;
|
||
|
}
|
||
|
public ulong id;
|
||
|
public int bonfireId;
|
||
|
public int modelId;
|
||
|
public float x;
|
||
|
public float y;
|
||
|
}
|
||
|
public partial class TombstoneInfo : 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.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
stoneId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
x = ProtoBufUtils.ReadFloat(ref readPos);
|
||
|
break;
|
||
|
case 4 :
|
||
|
y = ProtoBufUtils.ReadFloat(ref readPos);
|
||
|
break;
|
||
|
case 5 :
|
||
|
cd = 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.WriteUint64(1,id);
|
||
|
ProtoBufUtils.WriteInt32(2,stoneId);
|
||
|
ProtoBufUtils.WriteFloat(3,x);
|
||
|
ProtoBufUtils.WriteFloat(4,y);
|
||
|
ProtoBufUtils.WriteInt32(5,cd);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
id = 0;
|
||
|
stoneId = 0;
|
||
|
x = 0;
|
||
|
y = 0;
|
||
|
cd = 0;
|
||
|
}
|
||
|
public ulong id;
|
||
|
public int stoneId;
|
||
|
public float x;
|
||
|
public float y;
|
||
|
public int cd;
|
||
|
}
|
||
|
public partial class Buff : 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 :
|
||
|
buffId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
curLevel = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
remainTime = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4 :
|
||
|
if(args == null)
|
||
|
{
|
||
|
args = new List<int>();
|
||
|
}
|
||
|
args.Add(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,buffId);
|
||
|
ProtoBufUtils.WriteInt32(2,curLevel);
|
||
|
ProtoBufUtils.WriteInt32(3,remainTime);
|
||
|
for (int i = 0; i < args.Count; i++)
|
||
|
{
|
||
|
ProtoBufUtils.WriteInt32(4,args[i]);
|
||
|
}
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
buffId = 0;
|
||
|
curLevel = 0;
|
||
|
remainTime = 0;
|
||
|
if(args != null)
|
||
|
{
|
||
|
args.Clear();
|
||
|
}
|
||
|
}
|
||
|
public int buffId;
|
||
|
public int curLevel;
|
||
|
public int remainTime;
|
||
|
public List<int> args = new List<int>();
|
||
|
}
|
||
|
public partial class Position : 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 :
|
||
|
x = ProtoBufUtils.ReadFloat(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
y = ProtoBufUtils.ReadFloat(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.WriteFloat(1,x);
|
||
|
ProtoBufUtils.WriteFloat(2,y);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
x = 0;
|
||
|
y = 0;
|
||
|
}
|
||
|
public float x;
|
||
|
public float y;
|
||
|
}
|
||
|
public partial class PlayerInfo : 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 :
|
||
|
playerId = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
name = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
career = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4 :
|
||
|
level = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 5 :
|
||
|
x = ProtoBufUtils.ReadFloat(ref readPos);
|
||
|
break;
|
||
|
case 6 :
|
||
|
y = ProtoBufUtils.ReadFloat(ref readPos);
|
||
|
break;
|
||
|
case 7 :
|
||
|
curHp = ProtoBufUtils.ReadFixed64(ref readPos);
|
||
|
break;
|
||
|
case 8 :
|
||
|
maxHp = ProtoBufUtils.ReadFixed64(ref readPos);
|
||
|
break;
|
||
|
case 9 :
|
||
|
moveSpeedFinal = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 10 :
|
||
|
attackSpeedFinal = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 11 :
|
||
|
mountId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 12 :
|
||
|
guildId = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 13 :
|
||
|
guildName = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 14 :
|
||
|
guildPost = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 15 :
|
||
|
if(posList == null)
|
||
|
{
|
||
|
posList = new List<Position>();
|
||
|
}
|
||
|
posList.Add(new Position());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
posList[posList.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 16 :
|
||
|
if(buffList == null)
|
||
|
{
|
||
|
buffList = new List<Buff>();
|
||
|
}
|
||
|
buffList.Add(new Buff());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
buffList[buffList.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 17 :
|
||
|
title = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 18 :
|
||
|
dirX = ProtoBufUtils.ReadFloat(ref readPos);
|
||
|
break;
|
||
|
case 19 :
|
||
|
dirY = ProtoBufUtils.ReadFloat(ref readPos);
|
||
|
break;
|
||
|
case 20 :
|
||
|
isGather = ProtoBufUtils.ReadBoolean(ref readPos);
|
||
|
break;
|
||
|
case 21 :
|
||
|
marriageOtherName = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 22 :
|
||
|
stateVip = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 23 :
|
||
|
onSitting = ProtoBufUtils.ReadBoolean(ref readPos);
|
||
|
break;
|
||
|
case 24 :
|
||
|
camp = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 25 :
|
||
|
fabaoId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 26 :
|
||
|
fabaoUid = ProtoBufUtils.ReadInt64(ref readPos);
|
||
|
break;
|
||
|
case 27 :
|
||
|
soulSpirte1 = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 28 :
|
||
|
soulSpirte2 = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 29 :
|
||
|
soulSpirte3 = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 30 :
|
||
|
shiHaiCfgId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 31 :
|
||
|
serverId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 32 :
|
||
|
curWakan = ProtoBufUtils.ReadInt64(ref readPos);
|
||
|
break;
|
||
|
case 33 :
|
||
|
maxWakan = ProtoBufUtils.ReadInt64(ref readPos);
|
||
|
break;
|
||
|
case 34 :
|
||
|
if(facade == null)
|
||
|
{
|
||
|
facade = new FacadeAttribute();
|
||
|
}
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
facade.ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 35 :
|
||
|
fightState = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 36 :
|
||
|
feijianId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 37 :
|
||
|
feijianUid = ProtoBufUtils.ReadInt64(ref readPos);
|
||
|
break;
|
||
|
case 38 :
|
||
|
childId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 39 :
|
||
|
fightPower = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 40 :
|
||
|
if(head == null)
|
||
|
{
|
||
|
head = new HeadAttribute();
|
||
|
}
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
head.ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 41 :
|
||
|
childName = 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.WriteUint64(1,playerId);
|
||
|
ProtoBufUtils.WriteString(2,name);
|
||
|
ProtoBufUtils.WriteInt32(3,career);
|
||
|
ProtoBufUtils.WriteInt32(4,level);
|
||
|
ProtoBufUtils.WriteFloat(5,x);
|
||
|
ProtoBufUtils.WriteFloat(6,y);
|
||
|
ProtoBufUtils.WriteFixed64(7,curHp);
|
||
|
ProtoBufUtils.WriteFixed64(8,maxHp);
|
||
|
ProtoBufUtils.WriteInt32(9,moveSpeedFinal);
|
||
|
ProtoBufUtils.WriteInt32(10,attackSpeedFinal);
|
||
|
ProtoBufUtils.WriteInt32(11,mountId);
|
||
|
ProtoBufUtils.WriteUint64(12,guildId);
|
||
|
ProtoBufUtils.WriteString(13,guildName);
|
||
|
ProtoBufUtils.WriteInt32(14,guildPost);
|
||
|
for (int i = 0; i < posList.Count; i++)
|
||
|
{
|
||
|
if(posList != null)
|
||
|
{
|
||
|
posList[i].WriteMessage(15);
|
||
|
}
|
||
|
}
|
||
|
for (int i = 0; i < buffList.Count; i++)
|
||
|
{
|
||
|
if(buffList != null)
|
||
|
{
|
||
|
buffList[i].WriteMessage(16);
|
||
|
}
|
||
|
}
|
||
|
ProtoBufUtils.WriteInt32(17,title);
|
||
|
ProtoBufUtils.WriteFloat(18,dirX);
|
||
|
ProtoBufUtils.WriteFloat(19,dirY);
|
||
|
ProtoBufUtils.WriteBoolean(20,isGather);
|
||
|
ProtoBufUtils.WriteString(21,marriageOtherName);
|
||
|
ProtoBufUtils.WriteInt32(22,stateVip);
|
||
|
ProtoBufUtils.WriteBoolean(23,onSitting);
|
||
|
ProtoBufUtils.WriteInt32(24,camp);
|
||
|
ProtoBufUtils.WriteInt32(25,fabaoId);
|
||
|
ProtoBufUtils.WriteInt64(26,fabaoUid);
|
||
|
ProtoBufUtils.WriteInt32(27,soulSpirte1);
|
||
|
ProtoBufUtils.WriteInt32(28,soulSpirte2);
|
||
|
ProtoBufUtils.WriteInt32(29,soulSpirte3);
|
||
|
ProtoBufUtils.WriteInt32(30,shiHaiCfgId);
|
||
|
ProtoBufUtils.WriteInt32(31,serverId);
|
||
|
ProtoBufUtils.WriteInt64(32,curWakan);
|
||
|
ProtoBufUtils.WriteInt64(33,maxWakan);
|
||
|
if(facade != null)
|
||
|
{
|
||
|
facade.WriteMessage(34);
|
||
|
}
|
||
|
ProtoBufUtils.WriteInt32(35,fightState);
|
||
|
ProtoBufUtils.WriteInt32(36,feijianId);
|
||
|
ProtoBufUtils.WriteInt64(37,feijianUid);
|
||
|
ProtoBufUtils.WriteInt32(38,childId);
|
||
|
ProtoBufUtils.WriteInt32(39,fightPower);
|
||
|
if(head != null)
|
||
|
{
|
||
|
head.WriteMessage(40);
|
||
|
}
|
||
|
ProtoBufUtils.WriteString(41,childName);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
playerId = 0;
|
||
|
name = null;
|
||
|
career = 0;
|
||
|
level = 0;
|
||
|
x = 0;
|
||
|
y = 0;
|
||
|
curHp = 0;
|
||
|
maxHp = 0;
|
||
|
moveSpeedFinal = 0;
|
||
|
attackSpeedFinal = 0;
|
||
|
mountId = 0;
|
||
|
guildId = 0;
|
||
|
guildName = null;
|
||
|
guildPost = 0;
|
||
|
if(posList != null)
|
||
|
{
|
||
|
posList.Clear();
|
||
|
}
|
||
|
if(buffList != null)
|
||
|
{
|
||
|
buffList.Clear();
|
||
|
}
|
||
|
title = 0;
|
||
|
dirX = 0;
|
||
|
dirY = 0;
|
||
|
isGather = false;
|
||
|
marriageOtherName = null;
|
||
|
stateVip = 0;
|
||
|
onSitting = false;
|
||
|
camp = 0;
|
||
|
fabaoId = 0;
|
||
|
fabaoUid = 0;
|
||
|
soulSpirte1 = 0;
|
||
|
soulSpirte2 = 0;
|
||
|
soulSpirte3 = 0;
|
||
|
shiHaiCfgId = 0;
|
||
|
serverId = 0;
|
||
|
curWakan = 0;
|
||
|
maxWakan = 0;
|
||
|
if(facade != null)
|
||
|
{
|
||
|
facade.Clear();
|
||
|
}
|
||
|
fightState = 0;
|
||
|
feijianId = 0;
|
||
|
feijianUid = 0;
|
||
|
childId = 0;
|
||
|
fightPower = 0;
|
||
|
if(head != null)
|
||
|
{
|
||
|
head.Clear();
|
||
|
}
|
||
|
childName = null;
|
||
|
}
|
||
|
public ulong playerId;
|
||
|
public string name;
|
||
|
public int career;
|
||
|
public int level;
|
||
|
public float x;
|
||
|
public float y;
|
||
|
public ulong curHp;
|
||
|
public ulong maxHp;
|
||
|
public int moveSpeedFinal;
|
||
|
public int attackSpeedFinal;
|
||
|
public int mountId;
|
||
|
public ulong guildId;
|
||
|
public string guildName;
|
||
|
public int guildPost;
|
||
|
public List<Position> posList = new List<Position>();
|
||
|
public List<Buff> buffList = new List<Buff>();
|
||
|
public int title;
|
||
|
public float dirX;
|
||
|
public float dirY;
|
||
|
public bool isGather;
|
||
|
public string marriageOtherName;
|
||
|
public int stateVip;
|
||
|
public bool onSitting;
|
||
|
public int camp;
|
||
|
public int fabaoId;
|
||
|
public long fabaoUid;
|
||
|
public int soulSpirte1;
|
||
|
public int soulSpirte2;
|
||
|
public int soulSpirte3;
|
||
|
public int shiHaiCfgId;
|
||
|
public int serverId;
|
||
|
public long curWakan;
|
||
|
public long maxWakan;
|
||
|
public FacadeAttribute facade;
|
||
|
public int fightState;
|
||
|
public int feijianId;
|
||
|
public long feijianUid;
|
||
|
public int childId;
|
||
|
public int fightPower;
|
||
|
public HeadAttribute head;
|
||
|
public string childName;
|
||
|
}
|
||
|
public partial class MonsterInfo : 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.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
dataID = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
camp = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4 :
|
||
|
x = ProtoBufUtils.ReadFloat(ref readPos);
|
||
|
break;
|
||
|
case 5 :
|
||
|
y = ProtoBufUtils.ReadFloat(ref readPos);
|
||
|
break;
|
||
|
case 6 :
|
||
|
curHp = ProtoBufUtils.ReadFixed64(ref readPos);
|
||
|
break;
|
||
|
case 7 :
|
||
|
maxHp = ProtoBufUtils.ReadFixed64(ref readPos);
|
||
|
break;
|
||
|
case 8 :
|
||
|
moveSpeedFinal = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 9 :
|
||
|
attackSpeedFinal = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 10 :
|
||
|
fightState = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 11 :
|
||
|
if(posList == null)
|
||
|
{
|
||
|
posList = new List<Position>();
|
||
|
}
|
||
|
posList.Add(new Position());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
posList[posList.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 12 :
|
||
|
if(buffList == null)
|
||
|
{
|
||
|
buffList = new List<Buff>();
|
||
|
}
|
||
|
buffList.Add(new Buff());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
buffList[buffList.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 13 :
|
||
|
dirX = ProtoBufUtils.ReadFloat(ref readPos);
|
||
|
break;
|
||
|
case 14 :
|
||
|
dirY = ProtoBufUtils.ReadFloat(ref readPos);
|
||
|
break;
|
||
|
case 15 :
|
||
|
isRun = ProtoBufUtils.ReadBoolean(ref readPos);
|
||
|
break;
|
||
|
case 16 :
|
||
|
isbirth = ProtoBufUtils.ReadBoolean(ref readPos);
|
||
|
break;
|
||
|
case 17 :
|
||
|
armor = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 18 :
|
||
|
if(dropUserIds == null)
|
||
|
{
|
||
|
dropUserIds = new List<long>();
|
||
|
}
|
||
|
dropUserIds.Add(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.WriteUint64(1,id);
|
||
|
ProtoBufUtils.WriteInt32(2,dataID);
|
||
|
ProtoBufUtils.WriteInt32(3,camp);
|
||
|
ProtoBufUtils.WriteFloat(4,x);
|
||
|
ProtoBufUtils.WriteFloat(5,y);
|
||
|
ProtoBufUtils.WriteFixed64(6,curHp);
|
||
|
ProtoBufUtils.WriteFixed64(7,maxHp);
|
||
|
ProtoBufUtils.WriteInt32(8,moveSpeedFinal);
|
||
|
ProtoBufUtils.WriteInt32(9,attackSpeedFinal);
|
||
|
ProtoBufUtils.WriteInt32(10,fightState);
|
||
|
for (int i = 0; i < posList.Count; i++)
|
||
|
{
|
||
|
if(posList != null)
|
||
|
{
|
||
|
posList[i].WriteMessage(11);
|
||
|
}
|
||
|
}
|
||
|
for (int i = 0; i < buffList.Count; i++)
|
||
|
{
|
||
|
if(buffList != null)
|
||
|
{
|
||
|
buffList[i].WriteMessage(12);
|
||
|
}
|
||
|
}
|
||
|
ProtoBufUtils.WriteFloat(13,dirX);
|
||
|
ProtoBufUtils.WriteFloat(14,dirY);
|
||
|
ProtoBufUtils.WriteBoolean(15,isRun);
|
||
|
ProtoBufUtils.WriteBoolean(16,isbirth);
|
||
|
ProtoBufUtils.WriteInt32(17,armor);
|
||
|
for (int i = 0; i < dropUserIds.Count; i++)
|
||
|
{
|
||
|
ProtoBufUtils.WriteInt64(18,dropUserIds[i]);
|
||
|
}
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
id = 0;
|
||
|
dataID = 0;
|
||
|
camp = 0;
|
||
|
x = 0;
|
||
|
y = 0;
|
||
|
curHp = 0;
|
||
|
maxHp = 0;
|
||
|
moveSpeedFinal = 0;
|
||
|
attackSpeedFinal = 0;
|
||
|
fightState = 0;
|
||
|
if(posList != null)
|
||
|
{
|
||
|
posList.Clear();
|
||
|
}
|
||
|
if(buffList != null)
|
||
|
{
|
||
|
buffList.Clear();
|
||
|
}
|
||
|
dirX = 0;
|
||
|
dirY = 0;
|
||
|
isRun = false;
|
||
|
isbirth = false;
|
||
|
armor = 0;
|
||
|
if(dropUserIds != null)
|
||
|
{
|
||
|
dropUserIds.Clear();
|
||
|
}
|
||
|
}
|
||
|
public ulong id;
|
||
|
public int dataID;
|
||
|
public int camp;
|
||
|
public float x;
|
||
|
public float y;
|
||
|
public ulong curHp;
|
||
|
public ulong maxHp;
|
||
|
public int moveSpeedFinal;
|
||
|
public int attackSpeedFinal;
|
||
|
public int fightState;
|
||
|
public List<Position> posList = new List<Position>();
|
||
|
public List<Buff> buffList = new List<Buff>();
|
||
|
public float dirX;
|
||
|
public float dirY;
|
||
|
public bool isRun;
|
||
|
public bool isbirth;
|
||
|
public int armor;
|
||
|
public List<long> dropUserIds = new List<long>();
|
||
|
}
|
||
|
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 :
|
||
|
id = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
dataID = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
ownerID = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 4 :
|
||
|
ownerName = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 5 :
|
||
|
x = ProtoBufUtils.ReadFloat(ref readPos);
|
||
|
break;
|
||
|
case 6 :
|
||
|
y = ProtoBufUtils.ReadFloat(ref readPos);
|
||
|
break;
|
||
|
case 7 :
|
||
|
speed = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 8 :
|
||
|
if(posList == null)
|
||
|
{
|
||
|
posList = new List<Position>();
|
||
|
}
|
||
|
posList.Add(new Position());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
posList[posList.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 9 :
|
||
|
level = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 10 :
|
||
|
camp = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 11 :
|
||
|
curHp = ProtoBufUtils.ReadFixed64(ref readPos);
|
||
|
break;
|
||
|
case 12 :
|
||
|
maxHp = ProtoBufUtils.ReadFixed64(ref readPos);
|
||
|
break;
|
||
|
case 13 :
|
||
|
fightState = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 14 :
|
||
|
if(buffList == null)
|
||
|
{
|
||
|
buffList = new List<Buff>();
|
||
|
}
|
||
|
buffList.Add(new Buff());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
buffList[buffList.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.WriteUint64(1,id);
|
||
|
ProtoBufUtils.WriteInt32(2,dataID);
|
||
|
ProtoBufUtils.WriteUint64(3,ownerID);
|
||
|
ProtoBufUtils.WriteString(4,ownerName);
|
||
|
ProtoBufUtils.WriteFloat(5,x);
|
||
|
ProtoBufUtils.WriteFloat(6,y);
|
||
|
ProtoBufUtils.WriteInt32(7,speed);
|
||
|
for (int i = 0; i < posList.Count; i++)
|
||
|
{
|
||
|
if(posList != null)
|
||
|
{
|
||
|
posList[i].WriteMessage(8);
|
||
|
}
|
||
|
}
|
||
|
ProtoBufUtils.WriteInt32(9,level);
|
||
|
ProtoBufUtils.WriteInt32(10,camp);
|
||
|
ProtoBufUtils.WriteFixed64(11,curHp);
|
||
|
ProtoBufUtils.WriteFixed64(12,maxHp);
|
||
|
ProtoBufUtils.WriteInt32(13,fightState);
|
||
|
for (int i = 0; i < buffList.Count; i++)
|
||
|
{
|
||
|
if(buffList != null)
|
||
|
{
|
||
|
buffList[i].WriteMessage(14);
|
||
|
}
|
||
|
}
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
id = 0;
|
||
|
dataID = 0;
|
||
|
ownerID = 0;
|
||
|
ownerName = null;
|
||
|
x = 0;
|
||
|
y = 0;
|
||
|
speed = 0;
|
||
|
if(posList != null)
|
||
|
{
|
||
|
posList.Clear();
|
||
|
}
|
||
|
level = 0;
|
||
|
camp = 0;
|
||
|
curHp = 0;
|
||
|
maxHp = 0;
|
||
|
fightState = 0;
|
||
|
if(buffList != null)
|
||
|
{
|
||
|
buffList.Clear();
|
||
|
}
|
||
|
}
|
||
|
public ulong id;
|
||
|
public int dataID;
|
||
|
public ulong ownerID;
|
||
|
public string ownerName;
|
||
|
public float x;
|
||
|
public float y;
|
||
|
public int speed;
|
||
|
public List<Position> posList = new List<Position>();
|
||
|
public int level;
|
||
|
public int camp;
|
||
|
public ulong curHp;
|
||
|
public ulong maxHp;
|
||
|
public int fightState;
|
||
|
public List<Buff> buffList = new List<Buff>();
|
||
|
}
|
||
|
public partial class NpcInfo : 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 :
|
||
|
npcId = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
dataID = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
x = ProtoBufUtils.ReadFloat(ref readPos);
|
||
|
break;
|
||
|
case 4 :
|
||
|
y = ProtoBufUtils.ReadFloat(ref readPos);
|
||
|
break;
|
||
|
case 5 :
|
||
|
dir = 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.WriteUint64(1,npcId);
|
||
|
ProtoBufUtils.WriteInt32(2,dataID);
|
||
|
ProtoBufUtils.WriteFloat(3,x);
|
||
|
ProtoBufUtils.WriteFloat(4,y);
|
||
|
ProtoBufUtils.WriteInt32(5,dir);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
npcId = 0;
|
||
|
dataID = 0;
|
||
|
x = 0;
|
||
|
y = 0;
|
||
|
dir = 0;
|
||
|
}
|
||
|
public ulong npcId;
|
||
|
public int dataID;
|
||
|
public float x;
|
||
|
public float y;
|
||
|
public int dir;
|
||
|
}
|
||
|
public partial class GatherInfo : 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 :
|
||
|
gatherId = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
dataID = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
mapId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4 :
|
||
|
x = ProtoBufUtils.ReadFloat(ref readPos);
|
||
|
break;
|
||
|
case 5 :
|
||
|
y = ProtoBufUtils.ReadFloat(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.WriteUint64(1,gatherId);
|
||
|
ProtoBufUtils.WriteInt32(2,dataID);
|
||
|
ProtoBufUtils.WriteInt32(3,mapId);
|
||
|
ProtoBufUtils.WriteFloat(4,x);
|
||
|
ProtoBufUtils.WriteFloat(5,y);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
gatherId = 0;
|
||
|
dataID = 0;
|
||
|
mapId = 0;
|
||
|
x = 0;
|
||
|
y = 0;
|
||
|
}
|
||
|
public ulong gatherId;
|
||
|
public int dataID;
|
||
|
public int mapId;
|
||
|
public float x;
|
||
|
public float y;
|
||
|
}
|
||
|
public partial class NearPlayerInfo : 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 :
|
||
|
memberId = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
memberName = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
memberLv = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4 :
|
||
|
memberFighting = ProtoBufUtils.ReadInt64(ref readPos);
|
||
|
break;
|
||
|
case 5 :
|
||
|
memberMapId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 6 :
|
||
|
memberLine = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 7 :
|
||
|
career = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 8 :
|
||
|
haveTeam = ProtoBufUtils.ReadBoolean(ref readPos);
|
||
|
break;
|
||
|
case 9 :
|
||
|
mrank = 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.WriteUint64(1,memberId);
|
||
|
ProtoBufUtils.WriteString(2,memberName);
|
||
|
ProtoBufUtils.WriteInt32(3,memberLv);
|
||
|
ProtoBufUtils.WriteInt64(4,memberFighting);
|
||
|
ProtoBufUtils.WriteInt32(5,memberMapId);
|
||
|
ProtoBufUtils.WriteInt32(6,memberLine);
|
||
|
ProtoBufUtils.WriteInt32(7,career);
|
||
|
ProtoBufUtils.WriteBoolean(8,haveTeam);
|
||
|
ProtoBufUtils.WriteInt32(9,mrank);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
memberId = 0;
|
||
|
memberName = null;
|
||
|
memberLv = 0;
|
||
|
memberFighting = 0;
|
||
|
memberMapId = 0;
|
||
|
memberLine = 0;
|
||
|
career = 0;
|
||
|
haveTeam = false;
|
||
|
mrank = 0;
|
||
|
}
|
||
|
public ulong memberId;
|
||
|
public string memberName;
|
||
|
public int memberLv;
|
||
|
public long memberFighting;
|
||
|
public int memberMapId;
|
||
|
public int memberLine;
|
||
|
public int career;
|
||
|
public bool haveTeam;
|
||
|
public int mrank;
|
||
|
}
|
||
|
public partial class FuzzyQueryList : 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 :
|
||
|
memberId = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
memberName = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
memberLv = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4 :
|
||
|
memberFighting = ProtoBufUtils.ReadInt64(ref readPos);
|
||
|
break;
|
||
|
case 5 :
|
||
|
memberMapId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 6 :
|
||
|
memberLine = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 7 :
|
||
|
career = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 8 :
|
||
|
haveTeam = 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.WriteUint64(1,memberId);
|
||
|
ProtoBufUtils.WriteString(2,memberName);
|
||
|
ProtoBufUtils.WriteInt32(3,memberLv);
|
||
|
ProtoBufUtils.WriteInt64(4,memberFighting);
|
||
|
ProtoBufUtils.WriteInt32(5,memberMapId);
|
||
|
ProtoBufUtils.WriteInt32(6,memberLine);
|
||
|
ProtoBufUtils.WriteInt32(7,career);
|
||
|
ProtoBufUtils.WriteBoolean(8,haveTeam);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
memberId = 0;
|
||
|
memberName = null;
|
||
|
memberLv = 0;
|
||
|
memberFighting = 0;
|
||
|
memberMapId = 0;
|
||
|
memberLine = 0;
|
||
|
career = 0;
|
||
|
haveTeam = false;
|
||
|
}
|
||
|
public ulong memberId;
|
||
|
public string memberName;
|
||
|
public int memberLv;
|
||
|
public long memberFighting;
|
||
|
public int memberMapId;
|
||
|
public int memberLine;
|
||
|
public int career;
|
||
|
public bool haveTeam;
|
||
|
}
|
||
|
public partial class ApplyInfo : ProtoBuf.IMessageInfo, ProtoBuf.IExtensible
|
||
|
{
|
||
|
public void Send(){}
|
||
|
public void Excute(){}
|
||
|
public void ReadMessage(ref int readPos, int totalCount)
|
||
|
{
|
||
|
int endIndex = totalCount + readPos - 1;
|
||
|
while (readPos <= endIndex)
|
||
|
{
|
||
|
int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos);
|
||
|
switch (fieldNumber)
|
||
|
{
|
||
|
case 1 :
|
||
|
roleId = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
lv = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
name = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 4 :
|
||
|
sex = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 5 :
|
||
|
guildId = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 6 :
|
||
|
guildName = 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.WriteUint64(1,roleId);
|
||
|
ProtoBufUtils.WriteInt32(2,lv);
|
||
|
ProtoBufUtils.WriteString(3,name);
|
||
|
ProtoBufUtils.WriteInt32(4,sex);
|
||
|
ProtoBufUtils.WriteUint64(5,guildId);
|
||
|
ProtoBufUtils.WriteString(6,guildName);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
roleId = 0;
|
||
|
lv = 0;
|
||
|
name = null;
|
||
|
sex = 0;
|
||
|
guildId = 0;
|
||
|
guildName = null;
|
||
|
}
|
||
|
public ulong roleId;
|
||
|
public int lv;
|
||
|
public string name;
|
||
|
public int sex;
|
||
|
public ulong guildId;
|
||
|
public string guildName;
|
||
|
}
|
||
|
public partial class powerAttribute : 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 :
|
||
|
type = 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,type);
|
||
|
ProtoBufUtils.WriteInt32(2,value);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
type = 0;
|
||
|
value = 0;
|
||
|
}
|
||
|
public int type;
|
||
|
public int value;
|
||
|
}
|
||
|
public partial class CrossAttribute : 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 :
|
||
|
type = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
value = ProtoBufUtils.ReadInt64(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
param = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 4 :
|
||
|
param1 = 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,type);
|
||
|
ProtoBufUtils.WriteInt64(2,value);
|
||
|
ProtoBufUtils.WriteString(3,param);
|
||
|
ProtoBufUtils.WriteInt32(4,param1);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
type = 0;
|
||
|
value = 0;
|
||
|
param = null;
|
||
|
param1 = 0;
|
||
|
}
|
||
|
public int type;
|
||
|
public long value;
|
||
|
public string param;
|
||
|
public int param1;
|
||
|
}
|
||
|
public partial class FacadeAttribute : 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 :
|
||
|
fashionBody = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
fashionWeapon = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
fashionHalo = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4 :
|
||
|
fashionMatrix = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 5 :
|
||
|
wingId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 6 :
|
||
|
spiritId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 7 :
|
||
|
soulArmorId = 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,fashionBody);
|
||
|
ProtoBufUtils.WriteInt32(2,fashionWeapon);
|
||
|
ProtoBufUtils.WriteInt32(3,fashionHalo);
|
||
|
ProtoBufUtils.WriteInt32(4,fashionMatrix);
|
||
|
ProtoBufUtils.WriteInt32(5,wingId);
|
||
|
ProtoBufUtils.WriteInt32(6,spiritId);
|
||
|
ProtoBufUtils.WriteInt32(7,soulArmorId);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
fashionBody = 0;
|
||
|
fashionWeapon = 0;
|
||
|
fashionHalo = 0;
|
||
|
fashionMatrix = 0;
|
||
|
wingId = 0;
|
||
|
spiritId = 0;
|
||
|
soulArmorId = 0;
|
||
|
}
|
||
|
public int fashionBody;
|
||
|
public int fashionWeapon;
|
||
|
public int fashionHalo;
|
||
|
public int fashionMatrix;
|
||
|
public int wingId;
|
||
|
public int spiritId;
|
||
|
public int soulArmorId;
|
||
|
}
|
||
|
public partial class HeadAttribute : 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 :
|
||
|
fashionHead = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
fashionFrame = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
customHeadPath = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 4 :
|
||
|
useCustomHead = 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,fashionHead);
|
||
|
ProtoBufUtils.WriteInt32(2,fashionFrame);
|
||
|
ProtoBufUtils.WriteString(3,customHeadPath);
|
||
|
ProtoBufUtils.WriteBoolean(4,useCustomHead);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
fashionHead = 0;
|
||
|
fashionFrame = 0;
|
||
|
customHeadPath = null;
|
||
|
useCustomHead = false;
|
||
|
}
|
||
|
public int fashionHead;
|
||
|
public int fashionFrame;
|
||
|
public string customHeadPath;
|
||
|
public bool useCustomHead;
|
||
|
}
|
||
|
public partial class KeyValueInfo : 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 :
|
||
|
key = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
value = 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.WriteString(1,key);
|
||
|
ProtoBufUtils.WriteString(2,value);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
key = null;
|
||
|
value = null;
|
||
|
}
|
||
|
public string key;
|
||
|
public string value;
|
||
|
}
|
||
|
}
|
||
|
|