using System.Collections.Generic; using Thousandto.Plugins.Common; using Thousandto.Code.Logic.Network; namespace MSG_Fight { public partial class SkillBaseInfo : 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 : userID = ProtoBufUtils.ReadUint64(ref readPos); break; case 2 : skillID = ProtoBufUtils.ReadInt32(ref readPos); break; case 3 : serial = ProtoBufUtils.ReadInt32(ref readPos); break; case 4 : dirX = ProtoBufUtils.ReadFloat(ref readPos); break; case 5 : dirY = 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,userID); ProtoBufUtils.WriteInt32(2,skillID); ProtoBufUtils.WriteInt32(3,serial); ProtoBufUtils.WriteFloat(4,dirX); ProtoBufUtils.WriteFloat(5,dirY); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { userID = 0; skillID = 0; serial = 0; dirX = 0; dirY = 0; } public ulong userID; public int skillID; public int serial; public float dirX; public float dirY; } public partial class ReqUseSkill : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 103201; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); if(info != null) { info.WriteMessage(1); } ProtoBufUtils.WriteUint64(2,curTargetId); ProtoBufUtils.WriteFloat(3,usePosX); ProtoBufUtils.WriteFloat(4,usePosY); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { if(info != null) { info.Clear(); } curTargetId = 0; usePosX = 0; usePosY = 0; } public SkillBaseInfo info; public ulong curTargetId; public float usePosX; public float usePosY; } public partial class ReqPlayLockTrajectory : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 103202; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); if(info != null) { info.WriteMessage(1); } ProtoBufUtils.WriteInt32(2,eventID); for (int i = 0; i < targetList.Count; i++) { ProtoBufUtils.WriteUint64(3,targetList[i]); } bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { if(info != null) { info.Clear(); } eventID = 0; if(targetList != null) { targetList.Clear(); } } public SkillBaseInfo info; public int eventID; public List targetList = new List(); } public partial class ReqPlaySkillObject : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 103203; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); if(info != null) { info.WriteMessage(1); } ProtoBufUtils.WriteInt32(2,eventID); ProtoBufUtils.WriteFloat(3,posX); ProtoBufUtils.WriteFloat(4,posY); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { if(info != null) { info.Clear(); } eventID = 0; posX = 0; posY = 0; } public SkillBaseInfo info; public int eventID; public float posX; public float posY; } public partial class ReqPlayHit : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 103204; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); if(info != null) { info.WriteMessage(1); } ProtoBufUtils.WriteInt32(2,eventID); for (int i = 0; i < targetList.Count; i++) { ProtoBufUtils.WriteUint64(3,targetList[i]); } bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { if(info != null) { info.Clear(); } eventID = 0; if(targetList != null) { targetList.Clear(); } } public SkillBaseInfo info; public int eventID; public List targetList = new List(); } public partial class ReqPlaySelfMove : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 103205; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); if(info != null) { info.WriteMessage(1); } ProtoBufUtils.WriteInt32(2,eventID); ProtoBufUtils.WriteFloat(3,curPosX); ProtoBufUtils.WriteFloat(4,curPosY); ProtoBufUtils.WriteFloat(5,tarPosX); ProtoBufUtils.WriteFloat(6,tarPosY); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { if(info != null) { info.Clear(); } eventID = 0; curPosX = 0; curPosY = 0; tarPosX = 0; tarPosY = 0; } public SkillBaseInfo info; public int eventID; public float curPosX; public float curPosY; public float tarPosX; public float tarPosY; } public partial class ResUseSkill : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResUseSkill(this); } public const uint MsgID = 103101; 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(info == null) { info = new SkillBaseInfo(); } totalCount = ProtoBufUtils.ReadInt32(ref readPos); info.ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { if(info != null) { info.Clear(); } } public SkillBaseInfo info; } public partial class ResPlayLockTrajectory : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResPlayLockTrajectory(this); } public const uint MsgID = 103102; 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(info == null) { info = new SkillBaseInfo(); } totalCount = ProtoBufUtils.ReadInt32(ref readPos); info.ReadMessage(ref readPos, totalCount); break; case 2: eventID = ProtoBufUtils.ReadInt32(ref readPos); break; case 3: if(targetList == null) { targetList = new List(); } targetList.Add(ProtoBufUtils.ReadUint64(ref readPos)); break; default: break; } } } } public void Clear() { if(info != null) { info.Clear(); } eventID = 0; if(targetList != null) { targetList.Clear(); } } public SkillBaseInfo info; public int eventID; public List targetList = new List(); } public partial class ResPlaySimpleSkillObject : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResPlaySimpleSkillObject(this); } public const uint MsgID = 103103; 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(info == null) { info = new SkillBaseInfo(); } totalCount = ProtoBufUtils.ReadInt32(ref readPos); info.ReadMessage(ref readPos, totalCount); break; case 2: eventID = ProtoBufUtils.ReadInt32(ref readPos); break; case 3: posX = ProtoBufUtils.ReadFloat(ref readPos); break; case 4: posY = ProtoBufUtils.ReadFloat(ref readPos); break; case 5: ID = ProtoBufUtils.ReadUint64(ref readPos); break; default: break; } } } } public void Clear() { if(info != null) { info.Clear(); } eventID = 0; posX = 0; posY = 0; ID = 0; } public SkillBaseInfo info; public int eventID; public float posX; public float posY; public ulong ID; } public partial class ResPlaySkillObject : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResPlaySkillObject(this); } public const uint MsgID = 103104; 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: visualDef = ProtoBufUtils.ReadString(ref readPos); break; case 2: posX = ProtoBufUtils.ReadFloat(ref readPos); break; case 3: posY = ProtoBufUtils.ReadFloat(ref readPos); break; case 4: ID = ProtoBufUtils.ReadUint64(ref readPos); break; case 5: ownerID = ProtoBufUtils.ReadUint64(ref readPos); break; case 6: moveSpeed = ProtoBufUtils.ReadFloat(ref readPos); break; case 7: mpveAddSpeed = ProtoBufUtils.ReadFloat(ref readPos); break; case 8: if(movePosList == null) { movePosList = new List(); } movePosList.Add(new MSG_Common.Position()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); movePosList[movePosList.Count - 1].ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { visualDef = null; posX = 0; posY = 0; ID = 0; ownerID = 0; moveSpeed = 0; mpveAddSpeed = 0; if(movePosList != null) { movePosList.Clear(); } } public string visualDef; public float posX; public float posY; public ulong ID; public ulong ownerID; public float moveSpeed; public float mpveAddSpeed; public List movePosList = new List(); } public partial class ResPlaySelfMove : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResPlaySelfMove(this); } public const uint MsgID = 103105; 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(info == null) { info = new SkillBaseInfo(); } totalCount = ProtoBufUtils.ReadInt32(ref readPos); info.ReadMessage(ref readPos, totalCount); break; case 2: eventID = ProtoBufUtils.ReadInt32(ref readPos); break; case 3: curPosX = ProtoBufUtils.ReadFloat(ref readPos); break; case 4: curPosY = ProtoBufUtils.ReadFloat(ref readPos); break; case 5: tarPosX = ProtoBufUtils.ReadFloat(ref readPos); break; case 6: tarPosY = ProtoBufUtils.ReadFloat(ref readPos); break; default: break; } } } } public void Clear() { if(info != null) { info.Clear(); } eventID = 0; curPosX = 0; curPosY = 0; tarPosX = 0; tarPosY = 0; } public SkillBaseInfo info; public int eventID; public float curPosX; public float curPosY; public float tarPosX; public float tarPosY; } public partial class HitEffectInfo : 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 : targetID = ProtoBufUtils.ReadUint64(ref readPos); break; case 2 : posx = ProtoBufUtils.ReadFloat(ref readPos); break; case 3 : posy = ProtoBufUtils.ReadFloat(ref readPos); break; case 4 : effect = ProtoBufUtils.ReadInt32(ref readPos); break; case 5 : damageHp = ProtoBufUtils.ReadInt64(ref readPos); break; case 6 : isDead = ProtoBufUtils.ReadBoolean(ref readPos); break; case 7 : damageWaken = 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,targetID); ProtoBufUtils.WriteFloat(2,posx); ProtoBufUtils.WriteFloat(3,posy); ProtoBufUtils.WriteInt32(4,effect); ProtoBufUtils.WriteInt64(5,damageHp); ProtoBufUtils.WriteBoolean(6,isDead); ProtoBufUtils.WriteInt32(7,damageWaken); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { targetID = 0; posx = 0; posy = 0; effect = 0; damageHp = 0; isDead = false; damageWaken = 0; } public ulong targetID; public float posx; public float posy; public int effect; public long damageHp; public bool isDead; public int damageWaken; } public partial class ResPlayHitEffect : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResPlayHitEffect(this); } public const uint MsgID = 103106; 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: userID = ProtoBufUtils.ReadUint64(ref readPos); break; case 2: hitEventID = ProtoBufUtils.ReadInt32(ref readPos); break; case 3: if(targets == null) { targets = new List(); } targets.Add(new HitEffectInfo()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); targets[targets.Count - 1].ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { userID = 0; hitEventID = 0; if(targets != null) { targets.Clear(); } } public ulong userID; public int hitEventID; public List targets = new List(); } public partial class ResObjDead : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResObjDead(this); } public const uint MsgID = 103107; 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: transMark = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: killerName = ProtoBufUtils.ReadString(ref readPos); break; case 3: deaderId = ProtoBufUtils.ReadUint64(ref readPos); break; case 4: reviveType = ProtoBufUtils.ReadInt32(ref readPos); break; case 5: reviveCount = ProtoBufUtils.ReadInt32(ref readPos); break; case 6: reviveLastTime = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { transMark = 0; killerName = null; deaderId = 0; reviveType = 0; reviveCount = 0; reviveLastTime = 0; } public int transMark; public string killerName; public ulong deaderId; public int reviveType; public int reviveCount; public int reviveLastTime; } public partial class ResHpChange : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResHpChange(this); } public const uint MsgID = 103108; 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: ownId = ProtoBufUtils.ReadUint64(ref readPos); break; case 2: curHp = ProtoBufUtils.ReadInt64(ref readPos); break; default: break; } } } } public void Clear() { ownId = 0; curHp = 0; } public ulong ownId; public long curHp; } public partial class ResWakanChange : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResWakanChange(this); } public const uint MsgID = 103120; 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: ownId = ProtoBufUtils.ReadUint64(ref readPos); break; case 2: curWakan = ProtoBufUtils.ReadInt64(ref readPos); break; case 3: maxWakan = ProtoBufUtils.ReadInt64(ref readPos); break; default: break; } } } } public void Clear() { ownId = 0; curWakan = 0; maxWakan = 0; } public ulong ownId; public long curWakan; public long maxWakan; } public partial class ReqRollMove : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 103209; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteFloat(1,moveToX); ProtoBufUtils.WriteFloat(2,moveToY); ProtoBufUtils.WriteFloat(3,selfX); ProtoBufUtils.WriteFloat(4,selfY); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { moveToX = 0; moveToY = 0; selfX = 0; selfY = 0; } public float moveToX; public float moveToY; public float selfX; public float selfY; } public partial class ResRollMove : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResRollMove(this); } public const uint MsgID = 103109; 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: userID = ProtoBufUtils.ReadUint64(ref readPos); break; case 2: moveToX = ProtoBufUtils.ReadFloat(ref readPos); break; case 3: moveToY = ProtoBufUtils.ReadFloat(ref readPos); break; case 4: selfX = ProtoBufUtils.ReadFloat(ref readPos); break; case 5: selfY = ProtoBufUtils.ReadFloat(ref readPos); break; default: break; } } } } public void Clear() { userID = 0; moveToX = 0; moveToY = 0; selfX = 0; selfY = 0; } public ulong userID; public float moveToX; public float moveToY; public float selfX; public float selfY; } public partial class ResUpdateFightState : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResUpdateFightState(this); } public const uint MsgID = 103110; 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: id = ProtoBufUtils.ReadUint64(ref readPos); break; case 2: state = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { id = 0; state = 0; } public ulong id; public int state; } public partial class ResUseSkillError : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResUseSkillError(this); } public const uint MsgID = 103111; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1: skillId = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: serial = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { skillId = 0; serial = 0; } public int skillId; public int serial; } public partial class ReqChangeAttackDir : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 103212; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteFloat(1,dirX); ProtoBufUtils.WriteFloat(2,dirY); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { dirX = 0; dirY = 0; } public float dirX; public float dirY; } public partial class ResChangeAttackDirRes : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResChangeAttackDirRes(this); } public const uint MsgID = 103112; 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: dirX = ProtoBufUtils.ReadFloat(ref readPos); break; case 2: dirY = ProtoBufUtils.ReadFloat(ref readPos); break; case 3: roleId = ProtoBufUtils.ReadUint64(ref readPos); break; default: break; } } } } public void Clear() { dirX = 0; dirY = 0; roleId = 0; } public float dirX; public float dirY; public ulong roleId; } public partial class ResMonsterHpChange : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResMonsterHpChange(this); } public const uint MsgID = 103113; 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: ownId = ProtoBufUtils.ReadUint64(ref readPos); break; case 2: curHp = ProtoBufUtils.ReadInt64(ref readPos); break; case 3: armor = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { ownId = 0; curHp = 0; armor = 0; } public ulong ownId; public long curHp; public int armor; } public partial class GuideSkillTarget : 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 : targetID = ProtoBufUtils.ReadUint64(ref readPos); break; case 2 : posx = ProtoBufUtils.ReadFloat(ref readPos); break; case 3 : posy = 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,targetID); ProtoBufUtils.WriteFloat(2,posx); ProtoBufUtils.WriteFloat(3,posy); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { targetID = 0; posx = 0; posy = 0; } public ulong targetID; public float posx; public float posy; } public partial class ReqFlyPetCloneAttack : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 103214; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,skillId); for (int i = 0; i < targets.Count; i++) { if(targets != null) { targets[i].WriteMessage(2); } } bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { skillId = 0; if(targets != null) { targets.Clear(); } } public int skillId; public List targets = new List(); } public partial class ResFlyPetCloneAttack : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResFlyPetCloneAttack(this); } public const uint MsgID = 103114; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1: skillId = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: if(infolist == null) { infolist = new List(); } infolist.Add(new flyPetCloneAttackInfo()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); infolist[infolist.Count - 1].ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { skillId = 0; if(infolist != null) { infolist.Clear(); } } public int skillId; public List infolist = new List(); } public partial class flyPetCloneAttackInfo : 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 : targetID = ProtoBufUtils.ReadUint64(ref readPos); break; case 2 : posx = ProtoBufUtils.ReadFloat(ref readPos); break; case 3 : posy = ProtoBufUtils.ReadFloat(ref readPos); break; case 4 : damageHp = ProtoBufUtils.ReadInt64(ref readPos); break; case 5 : isDead = 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,targetID); ProtoBufUtils.WriteFloat(2,posx); ProtoBufUtils.WriteFloat(3,posy); ProtoBufUtils.WriteInt64(4,damageHp); ProtoBufUtils.WriteBoolean(5,isDead); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { targetID = 0; posx = 0; posy = 0; damageHp = 0; isDead = false; } public ulong targetID; public float posx; public float posy; public long damageHp; public bool isDead; } }