870 lines
28 KiB
C#
870 lines
28 KiB
C#
|
using System.Collections.Generic;
|
||
|
using Thousandto.Plugins.Common;
|
||
|
using Thousandto.Code.Logic.Network;
|
||
|
|
||
|
namespace MSG_SoulArmor
|
||
|
{
|
||
|
public partial class SoulArmorBallSlot : 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 :
|
||
|
slot = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
level = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
isOpen = ProtoBufUtils.ReadBoolean(ref readPos);
|
||
|
break;
|
||
|
case 4 :
|
||
|
if(ball == null)
|
||
|
{
|
||
|
ball = new MSG_backpack.ItemInfo();
|
||
|
}
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
ball.ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public int WriteMessage(int fieldNumber)
|
||
|
{
|
||
|
ProtoBufUtils.WriteHeader(fieldNumber, ProtoBuf.WireType.String);
|
||
|
int subItemInfoId = ProtoBufUtils.GetSubItemInfoId();
|
||
|
ProtoBufUtils.SetEmptyLength(subItemInfoId);
|
||
|
ProtoBufUtils.SetVBeginIndex(subItemInfoId);
|
||
|
ProtoBufUtils.WriteInt32(1,slot);
|
||
|
ProtoBufUtils.WriteInt32(2,level);
|
||
|
ProtoBufUtils.WriteBoolean(3,isOpen);
|
||
|
if(ball != null)
|
||
|
{
|
||
|
ball.WriteMessage(4);
|
||
|
}
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
slot = 0;
|
||
|
level = 0;
|
||
|
isOpen = false;
|
||
|
if(ball != null)
|
||
|
{
|
||
|
ball.Clear();
|
||
|
}
|
||
|
}
|
||
|
public int slot;
|
||
|
public int level;
|
||
|
public bool isOpen;
|
||
|
public MSG_backpack.ItemInfo ball;
|
||
|
}
|
||
|
public partial class ResSoulArmor : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResSoulArmor(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 191101;
|
||
|
public void Send(){}
|
||
|
public void ReadMessage(byte[] bytes)
|
||
|
{
|
||
|
lock (ProtoBufUtils.ReadLocker)
|
||
|
{
|
||
|
Clear();
|
||
|
int endIndex = bytes.Length - 1;
|
||
|
int readPos = 0;
|
||
|
int totalCount = 0;
|
||
|
ProtoBufUtils.InitReadData(bytes, ref readPos);
|
||
|
while (readPos <= endIndex)
|
||
|
{
|
||
|
int curType = bytes[readPos] & 7;
|
||
|
int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos);
|
||
|
switch (fieldNumber)
|
||
|
{
|
||
|
case 1:
|
||
|
level = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
qualityLevel = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3:
|
||
|
skillLevel = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4:
|
||
|
if(skillList == null)
|
||
|
{
|
||
|
skillList = new List<int>();
|
||
|
}
|
||
|
skillList.Add(ProtoBufUtils.ReadInt32(ref readPos));
|
||
|
break;
|
||
|
case 5:
|
||
|
if(slots == null)
|
||
|
{
|
||
|
slots = new List<SoulArmorBallSlot>();
|
||
|
}
|
||
|
slots.Add(new SoulArmorBallSlot());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
slots[slots.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
level = 0;
|
||
|
qualityLevel = 0;
|
||
|
skillLevel = 0;
|
||
|
if(skillList != null)
|
||
|
{
|
||
|
skillList.Clear();
|
||
|
}
|
||
|
if(slots != null)
|
||
|
{
|
||
|
slots.Clear();
|
||
|
}
|
||
|
}
|
||
|
public int level;
|
||
|
public int qualityLevel;
|
||
|
public int skillLevel;
|
||
|
public List<int> skillList = new List<int>();
|
||
|
public List<SoulArmorBallSlot> slots = new List<SoulArmorBallSlot>();
|
||
|
}
|
||
|
public partial class ReqSoulArmorBag : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 191201;
|
||
|
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 ResSoulArmorBag : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResSoulArmorBag(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 191102;
|
||
|
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(balls == null)
|
||
|
{
|
||
|
balls = new List<MSG_backpack.ItemInfo>();
|
||
|
}
|
||
|
balls.Add(new MSG_backpack.ItemInfo());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
balls[balls.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
if(balls != null)
|
||
|
{
|
||
|
balls.Clear();
|
||
|
}
|
||
|
}
|
||
|
public List<MSG_backpack.ItemInfo> balls = new List<MSG_backpack.ItemInfo>();
|
||
|
}
|
||
|
public partial class ReqSplitSoulArmorBall : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 191202;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
for (int i = 0; i < ballIds.Count; i++)
|
||
|
{
|
||
|
ProtoBufUtils.WriteInt64(1,ballIds[i]);
|
||
|
}
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
if(ballIds != null)
|
||
|
{
|
||
|
ballIds.Clear();
|
||
|
}
|
||
|
}
|
||
|
public List<long> ballIds = new List<long>();
|
||
|
}
|
||
|
public partial class ResAddSoulArmorBall : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResAddSoulArmorBall(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 191103;
|
||
|
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(balls == null)
|
||
|
{
|
||
|
balls = new List<MSG_backpack.ItemInfo>();
|
||
|
}
|
||
|
balls.Add(new MSG_backpack.ItemInfo());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
balls[balls.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 2:
|
||
|
reason = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
if(balls != null)
|
||
|
{
|
||
|
balls.Clear();
|
||
|
}
|
||
|
reason = 0;
|
||
|
}
|
||
|
public List<MSG_backpack.ItemInfo> balls = new List<MSG_backpack.ItemInfo>();
|
||
|
public int reason;
|
||
|
}
|
||
|
public partial class ResDelSoulArmorBall : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResDelSoulArmorBall(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 191104;
|
||
|
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(ids == null)
|
||
|
{
|
||
|
ids = new List<long>();
|
||
|
}
|
||
|
ids.Add(ProtoBufUtils.ReadInt64(ref readPos));
|
||
|
break;
|
||
|
case 2:
|
||
|
reason = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
if(ids != null)
|
||
|
{
|
||
|
ids.Clear();
|
||
|
}
|
||
|
reason = 0;
|
||
|
}
|
||
|
public List<long> ids = new List<long>();
|
||
|
public int reason;
|
||
|
}
|
||
|
public partial class ReqWearSoulArmorBall : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 191203;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,slotId);
|
||
|
ProtoBufUtils.WriteInt64(2,ballId);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
slotId = 0;
|
||
|
ballId = 0;
|
||
|
}
|
||
|
public int slotId;
|
||
|
public long ballId;
|
||
|
}
|
||
|
public partial class ReqUnWearSoulArmorBall : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 191204;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,slotId);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
slotId = 0;
|
||
|
}
|
||
|
public int slotId;
|
||
|
}
|
||
|
public partial class ResUpdateSoulArmorBallSlot : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResUpdateSoulArmorBallSlot(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 191105;
|
||
|
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(slot == null)
|
||
|
{
|
||
|
slot = new SoulArmorBallSlot();
|
||
|
}
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
slot.ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
if(slot != null)
|
||
|
{
|
||
|
slot.Clear();
|
||
|
}
|
||
|
}
|
||
|
public SoulArmorBallSlot slot;
|
||
|
}
|
||
|
public partial class ReqUpSoulArmor : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 191205;
|
||
|
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 ResUpdateSoulArmorLevel : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResUpdateSoulArmorLevel(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 191106;
|
||
|
public void Send(){}
|
||
|
public void ReadMessage(byte[] bytes)
|
||
|
{
|
||
|
lock (ProtoBufUtils.ReadLocker)
|
||
|
{
|
||
|
Clear();
|
||
|
int endIndex = bytes.Length - 1;
|
||
|
int readPos = 0;
|
||
|
int totalCount = 0;
|
||
|
ProtoBufUtils.InitReadData(bytes, ref readPos);
|
||
|
while (readPos <= endIndex)
|
||
|
{
|
||
|
int curType = bytes[readPos] & 7;
|
||
|
int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos);
|
||
|
switch (fieldNumber)
|
||
|
{
|
||
|
case 1:
|
||
|
level = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
level = 0;
|
||
|
}
|
||
|
public int level;
|
||
|
}
|
||
|
public partial class ReqUpSoulArmorQuality : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 191206;
|
||
|
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 ResSoulArmorQualityLevel : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResSoulArmorQualityLevel(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 191107;
|
||
|
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:
|
||
|
qualityLevel = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
qualityLevel = 0;
|
||
|
}
|
||
|
public int qualityLevel;
|
||
|
}
|
||
|
public partial class ReqUpSoulArmorSkill : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 191207;
|
||
|
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 ResUpSoulArmorSkillLevel : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResUpSoulArmorSkillLevel(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 191108;
|
||
|
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:
|
||
|
skillLevel = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
skillId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
skillLevel = 0;
|
||
|
skillId = 0;
|
||
|
}
|
||
|
public int skillLevel;
|
||
|
public int skillId;
|
||
|
}
|
||
|
public partial class ReqOpenSoulArmorLottery : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 191208;
|
||
|
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 ReqSoulArmorLottery : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 191209;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,type);
|
||
|
ProtoBufUtils.WriteInt32(2,count);
|
||
|
ProtoBufUtils.WriteBoolean(3,gold);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
type = 0;
|
||
|
count = 0;
|
||
|
gold = false;
|
||
|
}
|
||
|
public int type;
|
||
|
public int count;
|
||
|
public bool gold;
|
||
|
}
|
||
|
public partial class ResSoulArmorLottery : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResSoulArmorLottery(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 191109;
|
||
|
public void Send(){}
|
||
|
public void ReadMessage(byte[] bytes)
|
||
|
{
|
||
|
lock (ProtoBufUtils.ReadLocker)
|
||
|
{
|
||
|
Clear();
|
||
|
int endIndex = bytes.Length - 1;
|
||
|
int readPos = 0;
|
||
|
int totalCount = 0;
|
||
|
ProtoBufUtils.InitReadData(bytes, ref readPos);
|
||
|
while (readPos <= endIndex)
|
||
|
{
|
||
|
int curType = bytes[readPos] & 7;
|
||
|
int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos);
|
||
|
switch (fieldNumber)
|
||
|
{
|
||
|
case 1:
|
||
|
level = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
exp = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
level = 0;
|
||
|
exp = 0;
|
||
|
}
|
||
|
public int level;
|
||
|
public int exp;
|
||
|
}
|
||
|
public partial class ReqUpSoulArmorSlotLevel : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 191210;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,slotId);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
slotId = 0;
|
||
|
}
|
||
|
public int slotId;
|
||
|
}
|
||
|
public partial class ReqChangeArmorSkill : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 191211;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,skillId);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
skillId = 0;
|
||
|
}
|
||
|
public int skillId;
|
||
|
}
|
||
|
public partial class ResChangeSoulArmorSkill : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResChangeSoulArmorSkill(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 191110;
|
||
|
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:
|
||
|
oldId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
skillId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
oldId = 0;
|
||
|
skillId = 0;
|
||
|
}
|
||
|
public int oldId;
|
||
|
public int skillId;
|
||
|
}
|
||
|
public partial class ReqSoulArmorMerge : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 191212;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,slotId);
|
||
|
for (int i = 0; i < equips.Count; i++)
|
||
|
{
|
||
|
ProtoBufUtils.WriteInt64(2,equips[i]);
|
||
|
}
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
slotId = 0;
|
||
|
if(equips != null)
|
||
|
{
|
||
|
equips.Clear();
|
||
|
}
|
||
|
}
|
||
|
public int slotId;
|
||
|
public List<long> equips = new List<long>();
|
||
|
}
|
||
|
public partial class ResSoulArmorMerge : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResSoulArmorMerge(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 191111;
|
||
|
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:
|
||
|
result = ProtoBufUtils.ReadBoolean(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
result = false;
|
||
|
}
|
||
|
public bool result;
|
||
|
}
|
||
|
}
|
||
|
|