2333 lines
79 KiB
C#
2333 lines
79 KiB
C#
using System.Collections.Generic;
|
|
using Thousandto.Plugins.Common;
|
|
using Thousandto.Code.Logic.Network;
|
|
|
|
namespace MSG_GuildCrossFud
|
|
{
|
|
public partial class CrossFudCamp : 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 :
|
|
camp = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 2 :
|
|
if(serverId == null)
|
|
{
|
|
serverId = new List<int>();
|
|
}
|
|
serverId.Add(ProtoBufUtils.ReadInt32(ref readPos));
|
|
break;
|
|
case 3 :
|
|
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,camp);
|
|
for (int i = 0; i < serverId.Count; i++)
|
|
{
|
|
ProtoBufUtils.WriteInt32(2,serverId[i]);
|
|
}
|
|
ProtoBufUtils.WriteInt32(3,score);
|
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
|
}
|
|
public void Clear()
|
|
{
|
|
camp = 0;
|
|
if(serverId != null)
|
|
{
|
|
serverId.Clear();
|
|
}
|
|
score = 0;
|
|
}
|
|
public int camp;
|
|
public List<int> serverId = new List<int>();
|
|
public int score;
|
|
}
|
|
public partial class CrossFudRole : 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.ReadInt64(ref readPos);
|
|
break;
|
|
case 2 :
|
|
name = ProtoBufUtils.ReadString(ref readPos);
|
|
break;
|
|
case 3 :
|
|
rank = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 4 :
|
|
score = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 5 :
|
|
kill = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 6 :
|
|
damage = ProtoBufUtils.ReadInt64(ref readPos);
|
|
break;
|
|
case 7 :
|
|
career = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 8 :
|
|
inFud = ProtoBufUtils.ReadBoolean(ref readPos);
|
|
break;
|
|
case 10 :
|
|
if(camp == null)
|
|
{
|
|
camp = new CrossFudCamp();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
camp.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 9 :
|
|
if(facade == null)
|
|
{
|
|
facade = new MSG_Common.FacadeAttribute();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
facade.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.WriteInt64(1,playerId);
|
|
ProtoBufUtils.WriteString(2,name);
|
|
ProtoBufUtils.WriteInt32(3,rank);
|
|
ProtoBufUtils.WriteInt32(4,score);
|
|
ProtoBufUtils.WriteInt32(5,kill);
|
|
ProtoBufUtils.WriteInt64(6,damage);
|
|
ProtoBufUtils.WriteInt32(7,career);
|
|
ProtoBufUtils.WriteBoolean(8,inFud);
|
|
if(camp != null)
|
|
{
|
|
camp.WriteMessage(10);
|
|
}
|
|
if(facade != null)
|
|
{
|
|
facade.WriteMessage(9);
|
|
}
|
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
|
}
|
|
public void Clear()
|
|
{
|
|
playerId = 0;
|
|
name = null;
|
|
rank = 0;
|
|
score = 0;
|
|
kill = 0;
|
|
damage = 0;
|
|
career = 0;
|
|
inFud = false;
|
|
if(camp != null)
|
|
{
|
|
camp.Clear();
|
|
}
|
|
if(facade != null)
|
|
{
|
|
facade.Clear();
|
|
}
|
|
}
|
|
public long playerId;
|
|
public string name;
|
|
public int rank;
|
|
public int score;
|
|
public int kill;
|
|
public long damage;
|
|
public int career;
|
|
public bool inFud;
|
|
public CrossFudCamp camp;
|
|
public MSG_Common.FacadeAttribute facade;
|
|
}
|
|
public partial class CrossFudBoss : ProtoBuf.IMessageInfo, ProtoBuf.IExtensible
|
|
{
|
|
public void Send(){}
|
|
public void Excute(){}
|
|
public void ReadMessage(ref int readPos, int totalCount)
|
|
{
|
|
int endIndex = totalCount + readPos - 1;
|
|
while (readPos <= endIndex)
|
|
{
|
|
int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos);
|
|
switch (fieldNumber)
|
|
{
|
|
case 1 :
|
|
bossId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 2 :
|
|
hp = ProtoBufUtils.ReadInt64(ref readPos);
|
|
break;
|
|
case 3 :
|
|
isDie = ProtoBufUtils.ReadBoolean(ref readPos);
|
|
break;
|
|
case 4 :
|
|
care = ProtoBufUtils.ReadBoolean(ref readPos);
|
|
break;
|
|
case 5 :
|
|
time = 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,bossId);
|
|
ProtoBufUtils.WriteInt64(2,hp);
|
|
ProtoBufUtils.WriteBoolean(3,isDie);
|
|
ProtoBufUtils.WriteBoolean(4,care);
|
|
ProtoBufUtils.WriteInt32(5,time);
|
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
|
}
|
|
public void Clear()
|
|
{
|
|
bossId = 0;
|
|
hp = 0;
|
|
isDie = false;
|
|
care = false;
|
|
time = 0;
|
|
}
|
|
public int bossId;
|
|
public long hp;
|
|
public bool isDie;
|
|
public bool care;
|
|
public int time;
|
|
}
|
|
public partial class CrossFudBox : 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 :
|
|
boxId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 2 :
|
|
isGet = ProtoBufUtils.ReadBoolean(ref readPos);
|
|
break;
|
|
case 3 :
|
|
isLock = 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,boxId);
|
|
ProtoBufUtils.WriteBoolean(2,isGet);
|
|
ProtoBufUtils.WriteBoolean(3,isLock);
|
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
|
}
|
|
public void Clear()
|
|
{
|
|
boxId = 0;
|
|
isGet = false;
|
|
isLock = false;
|
|
}
|
|
public int boxId;
|
|
public bool isGet;
|
|
public bool isLock;
|
|
}
|
|
public partial class CrossFudCity : 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 :
|
|
cityId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 2 :
|
|
if(camp == null)
|
|
{
|
|
camp = new CrossFudCamp();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
camp.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 3 :
|
|
state = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 4 :
|
|
if(box == null)
|
|
{
|
|
box = new CrossFudBox();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
box.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 5 :
|
|
remainBoss = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 6 :
|
|
enterRole = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 7 :
|
|
remainDevilBoss = 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,cityId);
|
|
if(camp != null)
|
|
{
|
|
camp.WriteMessage(2);
|
|
}
|
|
ProtoBufUtils.WriteInt32(3,state);
|
|
if(box != null)
|
|
{
|
|
box.WriteMessage(4);
|
|
}
|
|
ProtoBufUtils.WriteInt32(5,remainBoss);
|
|
ProtoBufUtils.WriteInt32(6,enterRole);
|
|
ProtoBufUtils.WriteInt32(7,remainDevilBoss);
|
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
|
}
|
|
public void Clear()
|
|
{
|
|
cityId = 0;
|
|
if(camp != null)
|
|
{
|
|
camp.Clear();
|
|
}
|
|
state = 0;
|
|
if(box != null)
|
|
{
|
|
box.Clear();
|
|
}
|
|
remainBoss = 0;
|
|
enterRole = 0;
|
|
remainDevilBoss = 0;
|
|
}
|
|
public int cityId;
|
|
public CrossFudCamp camp;
|
|
public int state;
|
|
public CrossFudBox box;
|
|
public int remainBoss;
|
|
public int enterRole;
|
|
public int remainDevilBoss;
|
|
}
|
|
public partial class ReqAllCrossFudInfo : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 150201;
|
|
public void Excute(){}
|
|
public void Send()
|
|
{
|
|
lock (ProtoBufUtils.WriteLocker)
|
|
{
|
|
byte[] bytes = null;
|
|
ProtoBufUtils.InitWriteData();
|
|
bytes = ProtoBufUtils.GetData();
|
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
}
|
|
}
|
|
public partial class ResAllCrossFudInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResAllCrossFudInfo(this);
|
|
}
|
|
|
|
public const uint MsgID = 150101;
|
|
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(cityList == null)
|
|
{
|
|
cityList = new List<CrossFudCity>();
|
|
}
|
|
cityList.Add(new CrossFudCity());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
cityList[cityList.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 2:
|
|
if(boxList == null)
|
|
{
|
|
boxList = new List<CrossFudBox>();
|
|
}
|
|
boxList.Add(new CrossFudBox());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
boxList[boxList.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 3:
|
|
score = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 4:
|
|
worldLevel = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 5:
|
|
tValue = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(cityList != null)
|
|
{
|
|
cityList.Clear();
|
|
}
|
|
if(boxList != null)
|
|
{
|
|
boxList.Clear();
|
|
}
|
|
score = 0;
|
|
worldLevel = 0;
|
|
tValue = 0;
|
|
}
|
|
public List<CrossFudCity> cityList = new List<CrossFudCity>();
|
|
public List<CrossFudBox> boxList = new List<CrossFudBox>();
|
|
public int score;
|
|
public int worldLevel;
|
|
public int tValue;
|
|
}
|
|
public partial class ReqCrossFudUnLockScoreBox : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 150202;
|
|
public void Excute(){}
|
|
public void Send()
|
|
{
|
|
lock (ProtoBufUtils.WriteLocker)
|
|
{
|
|
byte[] bytes = null;
|
|
ProtoBufUtils.InitWriteData();
|
|
ProtoBufUtils.WriteInt32(1,boxId);
|
|
bytes = ProtoBufUtils.GetData();
|
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
boxId = 0;
|
|
}
|
|
public int boxId;
|
|
}
|
|
public partial class ResUpdateCrossFudScoreBox : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResUpdateCrossFudScoreBox(this);
|
|
}
|
|
|
|
public const uint MsgID = 150102;
|
|
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(boxList == null)
|
|
{
|
|
boxList = new List<CrossFudBox>();
|
|
}
|
|
boxList.Add(new CrossFudBox());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
boxList[boxList.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(boxList != null)
|
|
{
|
|
boxList.Clear();
|
|
}
|
|
}
|
|
public List<CrossFudBox> boxList = new List<CrossFudBox>();
|
|
}
|
|
public partial class ReqCrossFudScoreBoxOpen : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 150203;
|
|
public void Excute(){}
|
|
public void Send()
|
|
{
|
|
lock (ProtoBufUtils.WriteLocker)
|
|
{
|
|
byte[] bytes = null;
|
|
ProtoBufUtils.InitWriteData();
|
|
ProtoBufUtils.WriteInt32(1,boxId);
|
|
bytes = ProtoBufUtils.GetData();
|
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
boxId = 0;
|
|
}
|
|
public int boxId;
|
|
}
|
|
public partial class ResUpdateCrossFudBox : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResUpdateCrossFudBox(this);
|
|
}
|
|
|
|
public const uint MsgID = 150104;
|
|
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:
|
|
cityId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 2:
|
|
if(box == null)
|
|
{
|
|
box = new CrossFudBox();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
box.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
cityId = 0;
|
|
if(box != null)
|
|
{
|
|
box.Clear();
|
|
}
|
|
}
|
|
public int cityId;
|
|
public CrossFudBox box;
|
|
}
|
|
public partial class ReqCrossFudBoxOpen : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 150205;
|
|
public void Excute(){}
|
|
public void Send()
|
|
{
|
|
lock (ProtoBufUtils.WriteLocker)
|
|
{
|
|
byte[] bytes = null;
|
|
ProtoBufUtils.InitWriteData();
|
|
ProtoBufUtils.WriteInt32(1,cityId);
|
|
bytes = ProtoBufUtils.GetData();
|
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
cityId = 0;
|
|
}
|
|
public int cityId;
|
|
}
|
|
public partial class ReqCrossFudCityInfo : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 150206;
|
|
public void Excute(){}
|
|
public void Send()
|
|
{
|
|
lock (ProtoBufUtils.WriteLocker)
|
|
{
|
|
byte[] bytes = null;
|
|
ProtoBufUtils.InitWriteData();
|
|
ProtoBufUtils.WriteInt32(1,city);
|
|
ProtoBufUtils.WriteInt32(2,type);
|
|
bytes = ProtoBufUtils.GetData();
|
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
city = 0;
|
|
type = 0;
|
|
}
|
|
public int city;
|
|
public int type;
|
|
}
|
|
public partial class ResCrossFudCityInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResCrossFudCityInfo(this);
|
|
}
|
|
|
|
public const uint MsgID = 150107;
|
|
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 3:
|
|
cityId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 5:
|
|
enterRole = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 1:
|
|
if(campList == null)
|
|
{
|
|
campList = new List<CrossFudCamp>();
|
|
}
|
|
campList.Add(new CrossFudCamp());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
campList[campList.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 2:
|
|
if(bossList == null)
|
|
{
|
|
bossList = new List<CrossFudBoss>();
|
|
}
|
|
bossList.Add(new CrossFudBoss());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
bossList[bossList.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 4:
|
|
type = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
cityId = 0;
|
|
enterRole = 0;
|
|
if(campList != null)
|
|
{
|
|
campList.Clear();
|
|
}
|
|
if(bossList != null)
|
|
{
|
|
bossList.Clear();
|
|
}
|
|
type = 0;
|
|
}
|
|
public int cityId;
|
|
public int enterRole;
|
|
public List<CrossFudCamp> campList = new List<CrossFudCamp>();
|
|
public List<CrossFudBoss> bossList = new List<CrossFudBoss>();
|
|
public int type;
|
|
}
|
|
public partial class ReqCrossFudRank : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 150208;
|
|
public void Excute(){}
|
|
public void Send()
|
|
{
|
|
lock (ProtoBufUtils.WriteLocker)
|
|
{
|
|
byte[] bytes = null;
|
|
ProtoBufUtils.InitWriteData();
|
|
ProtoBufUtils.WriteInt32(1,type);
|
|
bytes = ProtoBufUtils.GetData();
|
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
type = 0;
|
|
}
|
|
public int type;
|
|
}
|
|
public partial class ResCrossFudRankInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResCrossFudRankInfo(this);
|
|
}
|
|
|
|
public const uint MsgID = 150109;
|
|
public void Send(){}
|
|
public void ReadMessage(byte[] bytes)
|
|
{
|
|
lock (ProtoBufUtils.ReadLocker)
|
|
{
|
|
Clear();
|
|
int endIndex = bytes.Length - 1;
|
|
int readPos = 0;
|
|
int totalCount = 0;
|
|
ProtoBufUtils.InitReadData(bytes, ref readPos);
|
|
while (readPos <= endIndex)
|
|
{
|
|
int curType = bytes[readPos] & 7;
|
|
int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos);
|
|
switch (fieldNumber)
|
|
{
|
|
case 1:
|
|
type = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 2:
|
|
if(my == null)
|
|
{
|
|
my = new CrossFudRole();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
my.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 3:
|
|
if(rankList == null)
|
|
{
|
|
rankList = new List<CrossFudRole>();
|
|
}
|
|
rankList.Add(new CrossFudRole());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
rankList[rankList.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
type = 0;
|
|
if(my != null)
|
|
{
|
|
my.Clear();
|
|
}
|
|
if(rankList != null)
|
|
{
|
|
rankList.Clear();
|
|
}
|
|
}
|
|
public int type;
|
|
public CrossFudRole my;
|
|
public List<CrossFudRole> rankList = new List<CrossFudRole>();
|
|
}
|
|
public partial class ResCrossFudReport : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResCrossFudReport(this);
|
|
}
|
|
|
|
public const uint MsgID = 150110;
|
|
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:
|
|
cityId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 2:
|
|
if(boss == null)
|
|
{
|
|
boss = new List<CrossFudBoss>();
|
|
}
|
|
boss.Add(new CrossFudBoss());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
boss[boss.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 3:
|
|
type = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
cityId = 0;
|
|
if(boss != null)
|
|
{
|
|
boss.Clear();
|
|
}
|
|
type = 0;
|
|
}
|
|
public int cityId;
|
|
public List<CrossFudBoss> boss = new List<CrossFudBoss>();
|
|
public int type;
|
|
}
|
|
public partial class ResCrossFudBossReport : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResCrossFudBossReport(this);
|
|
}
|
|
|
|
public const uint MsgID = 150111;
|
|
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(boss == null)
|
|
{
|
|
boss = new CrossFudBoss();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
boss.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 2:
|
|
if(camp == null)
|
|
{
|
|
camp = new CrossFudCamp();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
camp.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 3:
|
|
if(rankList == null)
|
|
{
|
|
rankList = new List<CrossFudRole>();
|
|
}
|
|
rankList.Add(new CrossFudRole());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
rankList[rankList.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 4:
|
|
type = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(boss != null)
|
|
{
|
|
boss.Clear();
|
|
}
|
|
if(camp != null)
|
|
{
|
|
camp.Clear();
|
|
}
|
|
if(rankList != null)
|
|
{
|
|
rankList.Clear();
|
|
}
|
|
type = 0;
|
|
}
|
|
public CrossFudBoss boss;
|
|
public CrossFudCamp camp;
|
|
public List<CrossFudRole> rankList = new List<CrossFudRole>();
|
|
public int type;
|
|
}
|
|
public partial class ResCrossFudOwnerNotice : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResCrossFudOwnerNotice(this);
|
|
}
|
|
|
|
public const uint MsgID = 150112;
|
|
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(first == null)
|
|
{
|
|
first = new CrossFudRole();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
first.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 2:
|
|
if(killRank == null)
|
|
{
|
|
killRank = new List<CrossFudRole>();
|
|
}
|
|
killRank.Add(new CrossFudRole());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
killRank[killRank.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 3:
|
|
if(scoreRank == null)
|
|
{
|
|
scoreRank = new List<CrossFudRole>();
|
|
}
|
|
scoreRank.Add(new CrossFudRole());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
scoreRank[scoreRank.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 4:
|
|
if(city == null)
|
|
{
|
|
city = new CrossFudCity();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
city.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(first != null)
|
|
{
|
|
first.Clear();
|
|
}
|
|
if(killRank != null)
|
|
{
|
|
killRank.Clear();
|
|
}
|
|
if(scoreRank != null)
|
|
{
|
|
scoreRank.Clear();
|
|
}
|
|
if(city != null)
|
|
{
|
|
city.Clear();
|
|
}
|
|
}
|
|
public CrossFudRole first;
|
|
public List<CrossFudRole> killRank = new List<CrossFudRole>();
|
|
public List<CrossFudRole> scoreRank = new List<CrossFudRole>();
|
|
public CrossFudCity city;
|
|
}
|
|
public partial class ReqCrossFudCareBoss : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 150213;
|
|
public void Excute(){}
|
|
public void Send()
|
|
{
|
|
lock (ProtoBufUtils.WriteLocker)
|
|
{
|
|
byte[] bytes = null;
|
|
ProtoBufUtils.InitWriteData();
|
|
ProtoBufUtils.WriteInt32(1,type);
|
|
ProtoBufUtils.WriteInt32(2,cityId);
|
|
ProtoBufUtils.WriteInt32(3,bossId);
|
|
bytes = ProtoBufUtils.GetData();
|
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
type = 0;
|
|
cityId = 0;
|
|
bossId = 0;
|
|
}
|
|
public int type;
|
|
public int cityId;
|
|
public int bossId;
|
|
}
|
|
public partial class ResCrossFudCareBoss : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResCrossFudCareBoss(this);
|
|
}
|
|
|
|
public const uint MsgID = 150114;
|
|
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(boss == null)
|
|
{
|
|
boss = new CrossFudBoss();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
boss.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 2:
|
|
cityId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(boss != null)
|
|
{
|
|
boss.Clear();
|
|
}
|
|
cityId = 0;
|
|
}
|
|
public CrossFudBoss boss;
|
|
public int cityId;
|
|
}
|
|
public partial class ReqCrossFudEnter : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 150215;
|
|
public void Excute(){}
|
|
public void Send()
|
|
{
|
|
lock (ProtoBufUtils.WriteLocker)
|
|
{
|
|
byte[] bytes = null;
|
|
ProtoBufUtils.InitWriteData();
|
|
ProtoBufUtils.WriteInt32(1,cityId);
|
|
ProtoBufUtils.WriteInt32(2,type);
|
|
bytes = ProtoBufUtils.GetData();
|
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
cityId = 0;
|
|
type = 0;
|
|
}
|
|
public int cityId;
|
|
public int type;
|
|
}
|
|
public partial class ResCrossFudCareBossRefresh : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResCrossFudCareBossRefresh(this);
|
|
}
|
|
|
|
public const uint MsgID = 150116;
|
|
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:
|
|
cityId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 2:
|
|
bossId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
cityId = 0;
|
|
bossId = 0;
|
|
}
|
|
public int cityId;
|
|
public int bossId;
|
|
}
|
|
public partial class ReqDevilBossList : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 150216;
|
|
public void Excute(){}
|
|
public void Send()
|
|
{
|
|
lock (ProtoBufUtils.WriteLocker)
|
|
{
|
|
byte[] bytes = null;
|
|
ProtoBufUtils.InitWriteData();
|
|
bytes = ProtoBufUtils.GetData();
|
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
}
|
|
}
|
|
public partial class ResDevilBossList : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResDevilBossList(this);
|
|
}
|
|
|
|
public const uint MsgID = 150117;
|
|
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(bossId == null)
|
|
{
|
|
bossId = new List<int>();
|
|
}
|
|
bossId.Add(ProtoBufUtils.ReadInt32(ref readPos));
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(bossId != null)
|
|
{
|
|
bossId.Clear();
|
|
}
|
|
}
|
|
public List<int> bossId = new List<int>();
|
|
}
|
|
public partial class ResUpdateTJValue : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResUpdateTJValue(this);
|
|
}
|
|
|
|
public const uint MsgID = 150118;
|
|
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:
|
|
tValue = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
tValue = 0;
|
|
}
|
|
public int tValue;
|
|
}
|
|
public partial class G2PAllCrossFudInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_G2PAllCrossFudInfo(this);
|
|
}
|
|
|
|
public const uint MsgID = 150301;
|
|
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(role == null)
|
|
{
|
|
role = new MSG_Common.CrossRole();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
role.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(role != null)
|
|
{
|
|
role.Clear();
|
|
}
|
|
}
|
|
public MSG_Common.CrossRole role;
|
|
}
|
|
public partial class G2PCrossFudUnLockScoreBox : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_G2PCrossFudUnLockScoreBox(this);
|
|
}
|
|
|
|
public const uint MsgID = 150302;
|
|
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(role == null)
|
|
{
|
|
role = new MSG_Common.CrossRole();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
role.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 2:
|
|
boxId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(role != null)
|
|
{
|
|
role.Clear();
|
|
}
|
|
boxId = 0;
|
|
}
|
|
public MSG_Common.CrossRole role;
|
|
public int boxId;
|
|
}
|
|
public partial class G2PCrossFudScoreBoxOpen : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_G2PCrossFudScoreBoxOpen(this);
|
|
}
|
|
|
|
public const uint MsgID = 150303;
|
|
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(role == null)
|
|
{
|
|
role = new MSG_Common.CrossRole();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
role.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 2:
|
|
boxId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(role != null)
|
|
{
|
|
role.Clear();
|
|
}
|
|
boxId = 0;
|
|
}
|
|
public MSG_Common.CrossRole role;
|
|
public int boxId;
|
|
}
|
|
public partial class G2PCrossFudBoxOpen : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_G2PCrossFudBoxOpen(this);
|
|
}
|
|
|
|
public const uint MsgID = 150304;
|
|
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 2:
|
|
if(role == null)
|
|
{
|
|
role = new MSG_Common.CrossRole();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
role.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 1:
|
|
cityId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(role != null)
|
|
{
|
|
role.Clear();
|
|
}
|
|
cityId = 0;
|
|
}
|
|
public MSG_Common.CrossRole role;
|
|
public int cityId;
|
|
}
|
|
public partial class G2PCrossFudCityInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_G2PCrossFudCityInfo(this);
|
|
}
|
|
|
|
public const uint MsgID = 150305;
|
|
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 2:
|
|
if(role == null)
|
|
{
|
|
role = new MSG_Common.CrossRole();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
role.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 1:
|
|
city = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 3:
|
|
type = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(role != null)
|
|
{
|
|
role.Clear();
|
|
}
|
|
city = 0;
|
|
type = 0;
|
|
}
|
|
public MSG_Common.CrossRole role;
|
|
public int city;
|
|
public int type;
|
|
}
|
|
public partial class G2PCrossFudRank : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_G2PCrossFudRank(this);
|
|
}
|
|
|
|
public const uint MsgID = 150306;
|
|
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 2:
|
|
if(role == null)
|
|
{
|
|
role = new MSG_Common.CrossRole();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
role.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 1:
|
|
type = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(role != null)
|
|
{
|
|
role.Clear();
|
|
}
|
|
type = 0;
|
|
}
|
|
public MSG_Common.CrossRole role;
|
|
public int type;
|
|
}
|
|
public partial class G2PCrossFudCareBoss : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_G2PCrossFudCareBoss(this);
|
|
}
|
|
|
|
public const uint MsgID = 150307;
|
|
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 3:
|
|
if(role == null)
|
|
{
|
|
role = new MSG_Common.CrossRole();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
role.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 1:
|
|
type = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 4:
|
|
cityId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 2:
|
|
bossId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(role != null)
|
|
{
|
|
role.Clear();
|
|
}
|
|
type = 0;
|
|
cityId = 0;
|
|
bossId = 0;
|
|
}
|
|
public MSG_Common.CrossRole role;
|
|
public int type;
|
|
public int cityId;
|
|
public int bossId;
|
|
}
|
|
public partial class F2PCrossFudInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_F2PCrossFudInfo(this);
|
|
}
|
|
|
|
public const uint MsgID = 150308;
|
|
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:
|
|
groupId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 2:
|
|
cityId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 3:
|
|
roomId = ProtoBufUtils.ReadInt64(ref readPos);
|
|
break;
|
|
case 4:
|
|
if(boss == null)
|
|
{
|
|
boss = new List<CrossFudBoss>();
|
|
}
|
|
boss.Add(new CrossFudBoss());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
boss[boss.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 5:
|
|
if(role == null)
|
|
{
|
|
role = new List<CrossFudRole>();
|
|
}
|
|
role.Add(new CrossFudRole());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
role[role.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 6:
|
|
if(camp == null)
|
|
{
|
|
camp = new List<CrossFudCamp>();
|
|
}
|
|
camp.Add(new CrossFudCamp());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
camp[camp.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
groupId = 0;
|
|
cityId = 0;
|
|
roomId = 0;
|
|
if(boss != null)
|
|
{
|
|
boss.Clear();
|
|
}
|
|
if(role != null)
|
|
{
|
|
role.Clear();
|
|
}
|
|
if(camp != null)
|
|
{
|
|
camp.Clear();
|
|
}
|
|
}
|
|
public int groupId;
|
|
public int cityId;
|
|
public long roomId;
|
|
public List<CrossFudBoss> boss = new List<CrossFudBoss>();
|
|
public List<CrossFudRole> role = new List<CrossFudRole>();
|
|
public List<CrossFudCamp> camp = new List<CrossFudCamp>();
|
|
}
|
|
public partial class G2PCrossFudEnter : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_G2PCrossFudEnter(this);
|
|
}
|
|
|
|
public const uint MsgID = 150309;
|
|
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(role == null)
|
|
{
|
|
role = new MSG_Common.CrossRole();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
role.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 2:
|
|
cityId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 3:
|
|
type = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(role != null)
|
|
{
|
|
role.Clear();
|
|
}
|
|
cityId = 0;
|
|
type = 0;
|
|
}
|
|
public MSG_Common.CrossRole role;
|
|
public int cityId;
|
|
public int type;
|
|
}
|
|
public partial class F2PCrossFudGain : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_F2PCrossFudGain(this);
|
|
}
|
|
|
|
public const uint MsgID = 150310;
|
|
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:
|
|
groupId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 2:
|
|
cityId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 3:
|
|
roomId = ProtoBufUtils.ReadInt64(ref readPos);
|
|
break;
|
|
case 4:
|
|
if(camp == null)
|
|
{
|
|
camp = new CrossFudCamp();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
camp.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 5:
|
|
if(first == null)
|
|
{
|
|
first = new CrossFudRole();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
first.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
groupId = 0;
|
|
cityId = 0;
|
|
roomId = 0;
|
|
if(camp != null)
|
|
{
|
|
camp.Clear();
|
|
}
|
|
if(first != null)
|
|
{
|
|
first.Clear();
|
|
}
|
|
}
|
|
public int groupId;
|
|
public int cityId;
|
|
public long roomId;
|
|
public CrossFudCamp camp;
|
|
public CrossFudRole first;
|
|
}
|
|
public partial class G2PDevilBossList : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_G2PDevilBossList(this);
|
|
}
|
|
|
|
public const uint MsgID = 150311;
|
|
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(role == null)
|
|
{
|
|
role = new MSG_Common.CrossRole();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
role.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(role != null)
|
|
{
|
|
role.Clear();
|
|
}
|
|
}
|
|
public MSG_Common.CrossRole role;
|
|
}
|
|
public partial class G2PSyncRoomInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_G2PSyncRoomInfo(this);
|
|
}
|
|
|
|
public const uint MsgID = 150312;
|
|
public void Send(){}
|
|
public void ReadMessage(byte[] bytes)
|
|
{
|
|
lock (ProtoBufUtils.ReadLocker)
|
|
{
|
|
Clear();
|
|
int endIndex = bytes.Length - 1;
|
|
int readPos = 0;
|
|
int totalCount = 0;
|
|
ProtoBufUtils.InitReadData(bytes, ref readPos);
|
|
while (readPos <= endIndex)
|
|
{
|
|
int curType = bytes[readPos] & 7;
|
|
int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos);
|
|
switch (fieldNumber)
|
|
{
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
}
|
|
}
|
|
public partial class F2PKillFudBoss : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_F2PKillFudBoss(this);
|
|
}
|
|
|
|
public const uint MsgID = 150313;
|
|
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:
|
|
groupId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 2:
|
|
cityId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 3:
|
|
roomId = ProtoBufUtils.ReadInt64(ref readPos);
|
|
break;
|
|
case 4:
|
|
if(killer == null)
|
|
{
|
|
killer = new List<long>();
|
|
}
|
|
killer.Add(ProtoBufUtils.ReadInt64(ref readPos));
|
|
break;
|
|
case 5:
|
|
boss = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
groupId = 0;
|
|
cityId = 0;
|
|
roomId = 0;
|
|
if(killer != null)
|
|
{
|
|
killer.Clear();
|
|
}
|
|
boss = 0;
|
|
}
|
|
public int groupId;
|
|
public int cityId;
|
|
public long roomId;
|
|
public List<long> killer = new List<long>();
|
|
public int boss;
|
|
}
|
|
public partial class P2GCrossFudBoxUnLock : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_P2GCrossFudBoxUnLock(this);
|
|
}
|
|
|
|
public const uint MsgID = 150401;
|
|
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 2:
|
|
roleId = ProtoBufUtils.ReadInt64(ref readPos);
|
|
break;
|
|
case 1:
|
|
boxId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
roleId = 0;
|
|
boxId = 0;
|
|
}
|
|
public long roleId;
|
|
public int boxId;
|
|
}
|
|
public partial class P2GCrossFudScoreBoxOpen : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_P2GCrossFudScoreBoxOpen(this);
|
|
}
|
|
|
|
public const uint MsgID = 150402;
|
|
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 2:
|
|
roleId = ProtoBufUtils.ReadInt64(ref readPos);
|
|
break;
|
|
case 1:
|
|
boxId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
roleId = 0;
|
|
boxId = 0;
|
|
}
|
|
public long roleId;
|
|
public int boxId;
|
|
}
|
|
public partial class P2GCrossFudReward : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_P2GCrossFudReward(this);
|
|
}
|
|
|
|
public const uint MsgID = 150403;
|
|
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 3:
|
|
roleId = ProtoBufUtils.ReadInt64(ref readPos);
|
|
break;
|
|
case 1:
|
|
reason = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 2:
|
|
if(rewardList == null)
|
|
{
|
|
rewardList = new List<MSG_Common.ShowItemInfo>();
|
|
}
|
|
rewardList.Add(new MSG_Common.ShowItemInfo());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
rewardList[rewardList.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
roleId = 0;
|
|
reason = 0;
|
|
if(rewardList != null)
|
|
{
|
|
rewardList.Clear();
|
|
}
|
|
}
|
|
public long roleId;
|
|
public int reason;
|
|
public List<MSG_Common.ShowItemInfo> rewardList = new List<MSG_Common.ShowItemInfo>();
|
|
}
|
|
public partial class P2GCrossFudProcess : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_P2GCrossFudProcess(this);
|
|
}
|
|
|
|
public const uint MsgID = 150404;
|
|
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:
|
|
roomId = ProtoBufUtils.ReadInt64(ref readPos);
|
|
break;
|
|
case 2:
|
|
type = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
roomId = 0;
|
|
type = 0;
|
|
}
|
|
public long roomId;
|
|
public int type;
|
|
}
|
|
public partial class P2GCrossFudOwnerNotice : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_P2GCrossFudOwnerNotice(this);
|
|
}
|
|
|
|
public const uint MsgID = 150405;
|
|
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(first == null)
|
|
{
|
|
first = new CrossFudRole();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
first.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 2:
|
|
if(killRank == null)
|
|
{
|
|
killRank = new List<CrossFudRole>();
|
|
}
|
|
killRank.Add(new CrossFudRole());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
killRank[killRank.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 3:
|
|
if(scoreRank == null)
|
|
{
|
|
scoreRank = new List<CrossFudRole>();
|
|
}
|
|
scoreRank.Add(new CrossFudRole());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
scoreRank[scoreRank.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 4:
|
|
if(city == null)
|
|
{
|
|
city = new CrossFudCity();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
city.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(first != null)
|
|
{
|
|
first.Clear();
|
|
}
|
|
if(killRank != null)
|
|
{
|
|
killRank.Clear();
|
|
}
|
|
if(scoreRank != null)
|
|
{
|
|
scoreRank.Clear();
|
|
}
|
|
if(city != null)
|
|
{
|
|
city.Clear();
|
|
}
|
|
}
|
|
public CrossFudRole first;
|
|
public List<CrossFudRole> killRank = new List<CrossFudRole>();
|
|
public List<CrossFudRole> scoreRank = new List<CrossFudRole>();
|
|
public CrossFudCity city;
|
|
}
|
|
}
|
|
|