public byte[] toBytes() { int total = 0; total += ProtoUtil.GetIntSize(this.roleID, true, 1, true, 0); total += ProtoUtil.GetIntSize(this.roleX, true, 2, true, 0); total += ProtoUtil.GetIntSize(this.roleY, true, 3, true, 0); total += ProtoUtil.GetIntSize(this.enemy, true, 4, true, 0); total += ProtoUtil.GetIntSize(this.enemyX, true, 5, true, 0); total += ProtoUtil.GetIntSize(this.enemyY, true, 6, true, 0); total += ProtoUtil.GetIntSize(this.realEnemyX, true, 7, true, 0); total += ProtoUtil.GetIntSize(this.realEnemyY, true, 8, true, 0); total += ProtoUtil.GetIntSize(this.magicCode, true, 9, true, 0); total += ProtoUtil.GetLongSize(this.clientTicks, true, 10, true, 0L); byte[] data = new byte[total]; int offset = 0; ProtoUtil.IntMemberToBytes(data, 1, ref offset, this.roleID, true, 0); ProtoUtil.IntMemberToBytes(data, 2, ref offset, this.roleX, true, 0); ProtoUtil.IntMemberToBytes(data, 3, ref offset, this.roleY, true, 0); ProtoUtil.IntMemberToBytes(data, 4, ref offset, this.enemy, true, 0); ProtoUtil.IntMemberToBytes(data, 5, ref offset, this.enemyX, true, 0); ProtoUtil.IntMemberToBytes(data, 6, ref offset, this.enemyY, true, 0); ProtoUtil.IntMemberToBytes(data, 7, ref offset, this.realEnemyX, true, 0); ProtoUtil.IntMemberToBytes(data, 8, ref offset, this.realEnemyY, true, 0); ProtoUtil.IntMemberToBytes(data, 9, ref offset, this.magicCode, true, 0); ProtoUtil.LongMemberToBytes(data, 10, ref offset, this.clientTicks, true, 0L); return(data); }
public byte[] toBytes() { int total = 0; total += ProtoUtil.GetIntSize(this.roleID, true, 1, true, 0); total += ProtoUtil.GetIntSize(this.mapCode, true, 2, true, 0); total += ProtoUtil.GetIntSize(this.action, true, 3, true, 0); total += ProtoUtil.GetIntSize(this.toX, true, 4, true, 0); total += ProtoUtil.GetIntSize(this.toY, true, 5, true, 0); total += ProtoUtil.GetIntSize(this.extAction, true, 6, true, 0); total += ProtoUtil.GetIntSize(this.fromX, true, 7, true, 0); total += ProtoUtil.GetIntSize(this.fromY, true, 8, true, 0); total += ProtoUtil.GetLongSize(this.startMoveTicks, true, 9, true, 0L); total += ProtoUtil.GetStringSize(this.pathString, true, 10); total += ProtoUtil.GetDoubleSize(this.moveCost, true, 11, true, 0.0); byte[] data = new byte[total]; int offset = 0; ProtoUtil.IntMemberToBytes(data, 1, ref offset, this.roleID, true, 0); ProtoUtil.IntMemberToBytes(data, 2, ref offset, this.mapCode, true, 0); ProtoUtil.IntMemberToBytes(data, 3, ref offset, this.action, true, 0); ProtoUtil.IntMemberToBytes(data, 4, ref offset, this.toX, true, 0); ProtoUtil.IntMemberToBytes(data, 5, ref offset, this.toY, true, 0); ProtoUtil.IntMemberToBytes(data, 6, ref offset, this.extAction, true, 0); ProtoUtil.IntMemberToBytes(data, 7, ref offset, this.fromX, true, 0); ProtoUtil.IntMemberToBytes(data, 8, ref offset, this.fromY, true, 0); ProtoUtil.LongMemberToBytes(data, 9, ref offset, this.startMoveTicks, true, 0L); ProtoUtil.StringMemberToBytes(data, 10, ref offset, this.pathString); ProtoUtil.DoubleMemberToBytes(data, 11, ref offset, this.moveCost, true, 0.0); return(data); }
public byte[] toBytes() { int total = 0; total += ProtoUtil.GetIntSize(this.RoleID, true, 1, true, 0); total += ProtoUtil.GetIntSize(this.Action, true, 2, true, 0); total += ProtoUtil.GetIntSize(this.MapCode, true, 3, true, 0); total += ProtoUtil.GetIntSize(this.ToMapX, true, 4, true, 0); total += ProtoUtil.GetIntSize(this.ToMapY, true, 5, true, 0); total += ProtoUtil.GetIntSize(this.ToDiection, true, 6, true, 0); total += ProtoUtil.GetIntSize(this.TryRun, true, 7, true, 0); total += ProtoUtil.GetLongSize(this.clientTicks, true, 8, true, 0L); byte[] data = new byte[total]; int offset = 0; ProtoUtil.IntMemberToBytes(data, 1, ref offset, this.RoleID, true, 0); ProtoUtil.IntMemberToBytes(data, 2, ref offset, this.Action, true, 0); ProtoUtil.IntMemberToBytes(data, 3, ref offset, this.MapCode, true, 0); ProtoUtil.IntMemberToBytes(data, 4, ref offset, this.ToMapX, true, 0); ProtoUtil.IntMemberToBytes(data, 5, ref offset, this.ToMapY, true, 0); ProtoUtil.IntMemberToBytes(data, 6, ref offset, this.ToDiection, true, 0); ProtoUtil.IntMemberToBytes(data, 7, ref offset, this.TryRun, true, 0); ProtoUtil.LongMemberToBytes(data, 8, ref offset, this.clientTicks, true, 0L); return(data); }
public byte[] toBytes() { int total = 0; total += ProtoUtil.GetIntSize(roleID, true, 1); total += ProtoUtil.GetIntSize(mapCode, true, 2); total += ProtoUtil.GetIntSize(direction, true, 3); total += ProtoUtil.GetIntSize(action, true, 4); total += ProtoUtil.GetIntSize(toX, true, 5); total += ProtoUtil.GetIntSize(toY, true, 6); total += ProtoUtil.GetIntSize(targetX, true, 7); total += ProtoUtil.GetIntSize(targetY, true, 8); total += ProtoUtil.GetIntSize(yAngle, true, 9); total += ProtoUtil.GetIntSize(moveToX, true, 10); total += ProtoUtil.GetIntSize(moveToY, true, 11); total += ProtoUtil.GetLongSize(clientTicks, true, 12); byte[] data = new byte[total]; int offset = 0; ProtoUtil.IntMemberToBytes(data, 1, ref offset, roleID); ProtoUtil.IntMemberToBytes(data, 2, ref offset, mapCode); ProtoUtil.IntMemberToBytes(data, 3, ref offset, direction); ProtoUtil.IntMemberToBytes(data, 4, ref offset, action); ProtoUtil.IntMemberToBytes(data, 5, ref offset, toX); ProtoUtil.IntMemberToBytes(data, 6, ref offset, toY); ProtoUtil.IntMemberToBytes(data, 7, ref offset, targetX); ProtoUtil.IntMemberToBytes(data, 8, ref offset, targetY); ProtoUtil.IntMemberToBytes(data, 9, ref offset, yAngle); ProtoUtil.IntMemberToBytes(data, 10, ref offset, moveToX); ProtoUtil.IntMemberToBytes(data, 11, ref offset, moveToY); ProtoUtil.LongMemberToBytes(data, 12, ref offset, clientTicks); return(data); }
public byte[] toBytes() { int total = 0; total += ProtoUtil.GetIntSize(this.enemy, true, 1, true, 0); total += ProtoUtil.GetIntSize(this.burst, true, 2, true, 0); total += ProtoUtil.GetIntSize(this.injure, true, 3, true, 0); total += ProtoUtil.GetDoubleSize(this.enemyLife, true, 4, true, 0.0); total += ProtoUtil.GetLongSize(this.newExperience, true, 5, true, 0L); total += ProtoUtil.GetLongSize(this.currentExperience, true, 6, true, 0L); total += ProtoUtil.GetIntSize(this.newLevel, true, 7, true, 0); total += ProtoUtil.GetIntSize(this.MerlinInjuer, true, 8, true, 0); total += ProtoUtil.GetIntSize(this.MerlinType, true, 9, true, 0); total += ProtoUtil.GetIntSize(this.armorV_p1, true, 10, true, 0); byte[] data = new byte[total]; int offset = 0; ProtoUtil.IntMemberToBytes(data, 1, ref offset, this.enemy, true, 0); ProtoUtil.IntMemberToBytes(data, 2, ref offset, this.burst, true, 0); ProtoUtil.IntMemberToBytes(data, 3, ref offset, this.injure, true, 0); ProtoUtil.DoubleMemberToBytes(data, 4, ref offset, this.enemyLife, true, 0.0); ProtoUtil.LongMemberToBytes(data, 5, ref offset, this.newExperience, true, 0L); ProtoUtil.LongMemberToBytes(data, 6, ref offset, this.currentExperience, true, 0L); ProtoUtil.IntMemberToBytes(data, 7, ref offset, this.newLevel, true, 0); ProtoUtil.IntMemberToBytes(data, 8, ref offset, this.MerlinInjuer, true, 0); ProtoUtil.IntMemberToBytes(data, 9, ref offset, this.MerlinType, true, 0); ProtoUtil.IntMemberToBytes(data, 10, ref offset, this.armorV_p1, true, 0); return(data); }
public byte[] toBytes() { int total = 0; total += ProtoUtil.GetIntSize(roleID, true, 1); total += ProtoUtil.GetIntSize(mapCode, true, 2); total += ProtoUtil.GetIntSize(action, true, 3); total += ProtoUtil.GetIntSize(toX, true, 4); total += ProtoUtil.GetIntSize(toY, true, 5); total += ProtoUtil.GetIntSize(extAction, true, 6); total += ProtoUtil.GetIntSize(fromX, true, 7); total += ProtoUtil.GetIntSize(fromY, true, 8); total += ProtoUtil.GetLongSize(startMoveTicks, true, 9); total += ProtoUtil.GetStringSize(pathString, true, 10); total += ProtoUtil.GetDoubleSize(moveCost, true, 11); byte[] data = new byte[total]; int offset = 0; ProtoUtil.IntMemberToBytes(data, 1, ref offset, roleID); ProtoUtil.IntMemberToBytes(data, 2, ref offset, mapCode); ProtoUtil.IntMemberToBytes(data, 3, ref offset, action); ProtoUtil.IntMemberToBytes(data, 4, ref offset, toX); ProtoUtil.IntMemberToBytes(data, 5, ref offset, toY); ProtoUtil.IntMemberToBytes(data, 6, ref offset, extAction); ProtoUtil.IntMemberToBytes(data, 7, ref offset, fromX); ProtoUtil.IntMemberToBytes(data, 8, ref offset, fromY); ProtoUtil.LongMemberToBytes(data, 9, ref offset, startMoveTicks); ProtoUtil.StringMemberToBytes(data, 10, ref offset, pathString); ProtoUtil.DoubleMemberToBytes(data, 11, ref offset, moveCost); return(data); }
public byte[] toBytes() { int total = 0; total += ProtoUtil.GetIntSize(this.roleID, true, 1); total += ProtoUtil.GetIntSize(this.roleX, true, 2); total += ProtoUtil.GetIntSize(this.roleY, true, 3); total += ProtoUtil.GetIntSize(this.enemy, true, 4); total += ProtoUtil.GetIntSize(this.enemyX, true, 5); total += ProtoUtil.GetIntSize(this.enemyY, true, 6); total += ProtoUtil.GetIntSize(this.realEnemyX, true, 7); total += ProtoUtil.GetIntSize(this.realEnemyY, true, 8); total += ProtoUtil.GetIntSize(this.magicCode, true, 9); total += ProtoUtil.GetLongSize(this.clientTicks, true, 10); total += ProtoUtil.GetStringSize(this.attackedList, true, 11); byte[] data = new byte[total]; int offset = 0; ProtoUtil.IntMemberToBytes(data, 1, ref offset, this.roleID); ProtoUtil.IntMemberToBytes(data, 2, ref offset, this.roleX); ProtoUtil.IntMemberToBytes(data, 3, ref offset, this.roleY); ProtoUtil.IntMemberToBytes(data, 4, ref offset, this.enemy); ProtoUtil.IntMemberToBytes(data, 5, ref offset, this.enemyX); ProtoUtil.IntMemberToBytes(data, 6, ref offset, this.enemyY); ProtoUtil.IntMemberToBytes(data, 7, ref offset, this.realEnemyX); ProtoUtil.IntMemberToBytes(data, 8, ref offset, this.realEnemyY); ProtoUtil.IntMemberToBytes(data, 9, ref offset, this.magicCode); ProtoUtil.LongMemberToBytes(data, 10, ref offset, this.clientTicks); ProtoUtil.StringMemberToBytes(data, 11, ref offset, this.attackedList); return(data); }
public byte[] toBytes() { int total = 0; total += ProtoUtil.GetIntSize(RoleID, true, 1); total += ProtoUtil.GetIntSize(Action, true, 2); total += ProtoUtil.GetIntSize(MapCode, true, 3); total += ProtoUtil.GetIntSize(ToMapX, true, 4); total += ProtoUtil.GetIntSize(ToMapY, true, 5); total += ProtoUtil.GetIntSize(ToDiection, true, 6); total += ProtoUtil.GetIntSize(TryRun, true, 7); total += ProtoUtil.GetLongSize(clientTicks, true, 8); byte[] data = new byte[total]; int offset = 0; ProtoUtil.IntMemberToBytes(data, 1, ref offset, RoleID); ProtoUtil.IntMemberToBytes(data, 2, ref offset, Action); ProtoUtil.IntMemberToBytes(data, 3, ref offset, MapCode); ProtoUtil.IntMemberToBytes(data, 4, ref offset, ToMapX); ProtoUtil.IntMemberToBytes(data, 5, ref offset, ToMapY); ProtoUtil.IntMemberToBytes(data, 6, ref offset, ToDiection); ProtoUtil.IntMemberToBytes(data, 7, ref offset, TryRun); ProtoUtil.LongMemberToBytes(data, 8, ref offset, clientTicks); return(data); }
public byte[] toBytes() { int total = 0; total += ProtoUtil.GetIntSize(this.roleID, true, 1, true, 0); total += ProtoUtil.GetIntSize(this.mapCode, true, 2, true, 0); total += ProtoUtil.GetIntSize(this.direction, true, 3, true, 0); total += ProtoUtil.GetIntSize(this.action, true, 4, true, 0); total += ProtoUtil.GetIntSize(this.toX, true, 5, true, 0); total += ProtoUtil.GetIntSize(this.toY, true, 6, true, 0); total += ProtoUtil.GetIntSize(this.targetX, true, 7, true, 0); total += ProtoUtil.GetIntSize(this.targetY, true, 8, true, 0); total += ProtoUtil.GetIntSize(this.yAngle, true, 9, true, 0); total += ProtoUtil.GetIntSize(this.moveToX, true, 10, true, 0); total += ProtoUtil.GetIntSize(this.moveToY, true, 11, true, 0); total += ProtoUtil.GetLongSize(this.clientTicks, true, 12, true, 0L); byte[] data = new byte[total]; int offset = 0; ProtoUtil.IntMemberToBytes(data, 1, ref offset, this.roleID, true, 0); ProtoUtil.IntMemberToBytes(data, 2, ref offset, this.mapCode, true, 0); ProtoUtil.IntMemberToBytes(data, 3, ref offset, this.direction, true, 0); ProtoUtil.IntMemberToBytes(data, 4, ref offset, this.action, true, 0); ProtoUtil.IntMemberToBytes(data, 5, ref offset, this.toX, true, 0); ProtoUtil.IntMemberToBytes(data, 6, ref offset, this.toY, true, 0); ProtoUtil.IntMemberToBytes(data, 7, ref offset, this.targetX, true, 0); ProtoUtil.IntMemberToBytes(data, 8, ref offset, this.targetY, true, 0); ProtoUtil.IntMemberToBytes(data, 9, ref offset, this.yAngle, true, 0); ProtoUtil.IntMemberToBytes(data, 10, ref offset, this.moveToX, true, 0); ProtoUtil.IntMemberToBytes(data, 11, ref offset, this.moveToY, true, 0); ProtoUtil.LongMemberToBytes(data, 12, ref offset, this.clientTicks, true, 0L); return(data); }
public byte[] toBytes() { int total = 0; total += ProtoUtil.GetIntSize(this.RoleID, true, 1, true, 0); total += ProtoUtil.GetIntSize(this.MapCode, true, 2, true, 0); total += ProtoUtil.GetLongSize(this.StartMoveTicks, true, 3, true, 0L); total += ProtoUtil.GetIntSize(this.CurrentX, true, 4, true, 0); total += ProtoUtil.GetIntSize(this.CurrentY, true, 5, true, 0); total += ProtoUtil.GetIntSize(this.CurrentDirection, true, 6, true, 0); total += ProtoUtil.GetIntSize(this.Action, true, 7, true, 0); total += ProtoUtil.GetIntSize(this.ToX, true, 8, true, 0); total += ProtoUtil.GetIntSize(this.ToY, true, 9, true, 0); total += ProtoUtil.GetDoubleSize(this.MoveCost, true, 10, true, 0.0); total += ProtoUtil.GetIntSize(this.ExtAction, true, 11, true, 0); total += ProtoUtil.GetStringSize(this.PathString, true, 12); total += ProtoUtil.GetIntSize(this.CurrentPathIndex, true, 13, true, 0); byte[] data = new byte[total]; int offset = 0; ProtoUtil.IntMemberToBytes(data, 1, ref offset, this.RoleID, true, 0); ProtoUtil.IntMemberToBytes(data, 2, ref offset, this.MapCode, true, 0); ProtoUtil.LongMemberToBytes(data, 3, ref offset, this.StartMoveTicks, true, 0L); ProtoUtil.IntMemberToBytes(data, 4, ref offset, this.CurrentX, true, 0); ProtoUtil.IntMemberToBytes(data, 5, ref offset, this.CurrentY, true, 0); ProtoUtil.IntMemberToBytes(data, 6, ref offset, this.CurrentDirection, true, 0); ProtoUtil.IntMemberToBytes(data, 7, ref offset, this.Action, true, 0); ProtoUtil.IntMemberToBytes(data, 8, ref offset, this.ToX, true, 0); ProtoUtil.IntMemberToBytes(data, 9, ref offset, this.ToY, true, 0); ProtoUtil.DoubleMemberToBytes(data, 10, ref offset, this.MoveCost, true, 0.0); ProtoUtil.IntMemberToBytes(data, 11, ref offset, this.ExtAction, true, 0); ProtoUtil.StringMemberToBytes(data, 12, ref offset, this.PathString); ProtoUtil.IntMemberToBytes(data, 13, ref offset, this.CurrentPathIndex, true, 0); return(data); }
public byte[] toBytes() { int total = 0; total += ProtoUtil.GetIntSize(enemy, true, 1); total += ProtoUtil.GetIntSize(burst, true, 2); total += ProtoUtil.GetIntSize(injure, true, 3); total += ProtoUtil.GetDoubleSize(enemyLife, true, 4); total += ProtoUtil.GetLongSize(newExperience, true, 5); total += ProtoUtil.GetLongSize(currentExperience, true, 6); total += ProtoUtil.GetIntSize(newLevel, true, 7); total += ProtoUtil.GetIntSize(MerlinInjuer, true, 8); total += ProtoUtil.GetIntSize(MerlinType, true, 9); byte[] data = new byte[total]; int offset = 0; ProtoUtil.IntMemberToBytes(data, 1, ref offset, enemy); ProtoUtil.IntMemberToBytes(data, 2, ref offset, burst); ProtoUtil.IntMemberToBytes(data, 3, ref offset, injure); ProtoUtil.DoubleMemberToBytes(data, 4, ref offset, enemyLife); ProtoUtil.LongMemberToBytes(data, 5, ref offset, newExperience); ProtoUtil.LongMemberToBytes(data, 6, ref offset, currentExperience); ProtoUtil.IntMemberToBytes(data, 7, ref offset, newLevel); ProtoUtil.IntMemberToBytes(data, 8, ref offset, MerlinInjuer); ProtoUtil.IntMemberToBytes(data, 9, ref offset, MerlinType); return(data); }
public byte[] toBytes() { int total = 0; total += ProtoUtil.GetIntSize(this.RoleID, true, 1, true, 0); total += ProtoUtil.GetIntSize(this.RandToken, true, 2, true, 0); total += ProtoUtil.GetIntSize(this.Ticks, true, 3, true, 0); total += ProtoUtil.GetLongSize(this.ReportCliRealTick, true, 4, true, 0L); byte[] data = new byte[total]; int offset = 0; ProtoUtil.IntMemberToBytes(data, 1, ref offset, this.RoleID, true, 0); ProtoUtil.IntMemberToBytes(data, 2, ref offset, this.RandToken, true, 0); ProtoUtil.IntMemberToBytes(data, 3, ref offset, this.Ticks, true, 0); ProtoUtil.LongMemberToBytes(data, 4, ref offset, this.ReportCliRealTick, true, 0L); return(data); }
public byte[] toBytes() { int total = 0; total += ProtoUtil.GetIntSize(this.roleID, true, 1, true, 0); total += ProtoUtil.GetIntSize(this.mapCode, true, 2, true, 0); total += ProtoUtil.GetIntSize(this.toX, true, 3, true, 0); total += ProtoUtil.GetIntSize(this.toY, true, 4, true, 0); total += ProtoUtil.GetLongSize(this.currentPosTicks, true, 5, true, 0L); byte[] data = new byte[total]; int offset = 0; ProtoUtil.IntMemberToBytes(data, 1, ref offset, this.roleID, true, 0); ProtoUtil.IntMemberToBytes(data, 2, ref offset, this.mapCode, true, 0); ProtoUtil.IntMemberToBytes(data, 3, ref offset, this.toX, true, 0); ProtoUtil.IntMemberToBytes(data, 4, ref offset, this.toY, true, 0); ProtoUtil.LongMemberToBytes(data, 5, ref offset, this.currentPosTicks, true, 0L); return(data); }
public byte[] toBytes() { int total = 0; total += ProtoUtil.GetIntSize(roleID, true, 1); total += ProtoUtil.GetIntSize(mapCode, true, 2); total += ProtoUtil.GetIntSize(toX, true, 3); total += ProtoUtil.GetIntSize(toY, true, 4); total += ProtoUtil.GetLongSize(currentPosTicks, true, 5); total += ProtoUtil.GetIntSize(toDirection, true, 6); byte[] data = new byte[total]; int offset = 0; ProtoUtil.IntMemberToBytes(data, 1, ref offset, this.roleID); ProtoUtil.IntMemberToBytes(data, 2, ref offset, this.mapCode); ProtoUtil.IntMemberToBytes(data, 3, ref offset, this.toX); ProtoUtil.IntMemberToBytes(data, 4, ref offset, this.toY); ProtoUtil.LongMemberToBytes(data, 5, ref offset, this.currentPosTicks); ProtoUtil.LongMemberToBytes(data, 6, ref offset, this.toDirection); return(data); }
public int getBytesSize() { int total = 0; total += ProtoUtil.GetIntSize(this.ownerRoleID, true, 1, true, 0); total += ProtoUtil.GetStringSize(this.ownerRoleName, true, 2); total += ProtoUtil.GetIntSize(this.autoID, true, 3, true, 0); total += ProtoUtil.GetIntSize(this.goodsPackID, true, 4, true, 0); total += ProtoUtil.GetIntSize(this.mapCode, true, 5, true, 0); total += ProtoUtil.GetIntSize(this.toX, true, 6, true, 0); total += ProtoUtil.GetIntSize(this.toY, true, 7, true, 0); total += ProtoUtil.GetIntSize(this.goodsID, true, 8, true, 0); total += ProtoUtil.GetIntSize(this.goodsNum, true, 9, true, 0); total += ProtoUtil.GetLongSize(this.productTicks, true, 10, true, 0L); total += ProtoUtil.GetLongSize(this.teamID, true, 11, true, 0L); total += ProtoUtil.GetStringSize(this.teamRoleIDs, true, 12); total += ProtoUtil.GetIntSize(this.lucky, true, 13, true, 0); total += ProtoUtil.GetIntSize(this.excellenceInfo, true, 14, true, 0); total += ProtoUtil.GetIntSize(this.appendPropLev, true, 15, true, 0); return(total + ProtoUtil.GetIntSize(this.forge_Level, true, 16, true, 0)); }
public byte[] toBytes() { int total = 0; total += ProtoUtil.GetIntSize(this.attackerRoleID, true, 1, true, 0); total += ProtoUtil.GetIntSize(this.injuredRoleID, true, 2, true, 0); total += ProtoUtil.GetIntSize(this.burst, true, 3, true, 0); total += ProtoUtil.GetIntSize(this.injure, true, 4, true, 0); total += ProtoUtil.GetLongSize(this.injuredRoleLife, true, 5, true, 0L); total += ProtoUtil.GetIntSize(this.attackerLevel, true, 6, true, 0); total += ProtoUtil.GetIntSize(this.injuredRoleMaxLifeV, true, 7, true, 0); total += ProtoUtil.GetIntSize(this.injuredRoleMagic, true, 8, true, 0); total += ProtoUtil.GetIntSize(this.injuredRoleMaxMagicV, true, 9, true, 0); total += ProtoUtil.GetIntSize(this.hitToGridX, true, 10, true, 0); total += ProtoUtil.GetIntSize(this.hitToGridY, true, 11, true, 0); total += ProtoUtil.GetIntSize(this.MerlinInjuer, true, 12, true, 0); total += ProtoUtil.GetIntSize(this.MerlinType, true, 13, true, 0); total += ProtoUtil.GetIntSize(this.stopCaiJi, true, 14, true, 0); total += ProtoUtil.GetIntSize(this.armorV_p1, true, 15, true, 0); byte[] data = new byte[total]; int offset = 0; ProtoUtil.IntMemberToBytes(data, 1, ref offset, this.attackerRoleID, true, 0); ProtoUtil.IntMemberToBytes(data, 2, ref offset, this.injuredRoleID, true, 0); ProtoUtil.IntMemberToBytes(data, 3, ref offset, this.burst, true, 0); ProtoUtil.IntMemberToBytes(data, 4, ref offset, this.injure, true, 0); ProtoUtil.LongMemberToBytes(data, 5, ref offset, this.injuredRoleLife, true, 0L); ProtoUtil.IntMemberToBytes(data, 6, ref offset, this.attackerLevel, true, 0); ProtoUtil.IntMemberToBytes(data, 7, ref offset, this.injuredRoleMaxLifeV, true, 0); ProtoUtil.IntMemberToBytes(data, 8, ref offset, this.injuredRoleMagic, true, 0); ProtoUtil.IntMemberToBytes(data, 9, ref offset, this.injuredRoleMaxMagicV, true, 0); ProtoUtil.IntMemberToBytes(data, 10, ref offset, this.hitToGridX, true, 0); ProtoUtil.IntMemberToBytes(data, 11, ref offset, this.hitToGridY, true, 0); ProtoUtil.IntMemberToBytes(data, 12, ref offset, this.MerlinInjuer, true, 0); ProtoUtil.IntMemberToBytes(data, 13, ref offset, this.MerlinType, true, 0); ProtoUtil.IntMemberToBytes(data, 14, ref offset, this.stopCaiJi, true, 0); ProtoUtil.IntMemberToBytes(data, 15, ref offset, this.armorV_p1, true, 0); return(data); }
public byte[] toBytes() { int total = 0; total += ProtoUtil.GetIntSize(this.roleID, true, 1, true, 0); total += ProtoUtil.GetIntSize(this.lifeV, true, 2, true, 0); total += ProtoUtil.GetIntSize(this.magicV, true, 3, true, 0); total += ProtoUtil.GetIntSize(this.currentLifeV, true, 4, true, 0); total += ProtoUtil.GetIntSize(this.currentMagicV, true, 5, true, 0); total += ProtoUtil.GetLongSize(this.ArmorV, true, 6, true, 0L); total += ProtoUtil.GetLongSize(this.currentArmorV, true, 7, true, 0L); byte[] data = new byte[total]; int offset = 0; ProtoUtil.IntMemberToBytes(data, 1, ref offset, this.roleID, true, 0); ProtoUtil.IntMemberToBytes(data, 2, ref offset, this.lifeV, true, 0); ProtoUtil.IntMemberToBytes(data, 3, ref offset, this.magicV, true, 0); ProtoUtil.IntMemberToBytes(data, 4, ref offset, this.currentLifeV, true, 0); ProtoUtil.IntMemberToBytes(data, 5, ref offset, this.currentMagicV, true, 0); ProtoUtil.LongMemberToBytes(data, 6, ref offset, this.ArmorV, true, 0L); ProtoUtil.LongMemberToBytes(data, 7, ref offset, this.currentArmorV, true, 0L); return(data); }
public byte[] toBytes() { int total = 0; total += ProtoUtil.GetIntSize(RoleID, true, 1); total += ProtoUtil.GetIntSize(MapCode, true, 2); total += ProtoUtil.GetLongSize(StartMoveTicks, true, 3); total += ProtoUtil.GetIntSize(CurrentX, true, 4); total += ProtoUtil.GetIntSize(CurrentY, true, 5); total += ProtoUtil.GetIntSize(CurrentDirection, true, 6); total += ProtoUtil.GetIntSize(Action, true, 7); total += ProtoUtil.GetIntSize(ToX, true, 8); total += ProtoUtil.GetIntSize(ToY, true, 9); total += ProtoUtil.GetDoubleSize(MoveCost, true, 10); total += ProtoUtil.GetIntSize(ExtAction, true, 11); total += ProtoUtil.GetStringSize(PathString, true, 12); total += ProtoUtil.GetIntSize(CurrentPathIndex, true, 13); byte[] data = new byte[total]; int offset = 0; ProtoUtil.IntMemberToBytes(data, 1, ref offset, RoleID); ProtoUtil.IntMemberToBytes(data, 2, ref offset, MapCode); ProtoUtil.LongMemberToBytes(data, 3, ref offset, StartMoveTicks); ProtoUtil.IntMemberToBytes(data, 4, ref offset, CurrentX); ProtoUtil.IntMemberToBytes(data, 5, ref offset, CurrentY); ProtoUtil.IntMemberToBytes(data, 6, ref offset, CurrentDirection); ProtoUtil.IntMemberToBytes(data, 7, ref offset, Action); ProtoUtil.IntMemberToBytes(data, 8, ref offset, ToX); ProtoUtil.IntMemberToBytes(data, 9, ref offset, ToY); ProtoUtil.DoubleMemberToBytes(data, 10, ref offset, MoveCost); ProtoUtil.IntMemberToBytes(data, 11, ref offset, ExtAction); ProtoUtil.StringMemberToBytes(data, 12, ref offset, PathString); ProtoUtil.IntMemberToBytes(data, 13, ref offset, CurrentPathIndex); return(data); }