public int fromBytes(byte[] data, int offset, int count) { int pos = offset; int mycount = 0; for (; mycount < count;) { int fieldnumber = -1; int wt = -1; ProtoUtil.GetTag(data, ref pos, ref fieldnumber, ref wt, ref mycount); switch (fieldnumber) { case 1: roleID = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 2: mapCode = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 3: toX = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 4: toY = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 5: currentPosTicks = ProtoUtil.LongMemberFromBytes(data, wt, ref pos, ref mycount); break; case 6: toDirection = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; default: { throw new ArgumentException("error!!!"); } } } return(pos); }
public int fromBytes(byte[] data, int offset, int count) { int pos = offset; int mycount = 0; while (mycount < count) { int fieldnumber = -1; int wt = -1; ProtoUtil.GetTag(data, ref pos, ref fieldnumber, ref wt, ref mycount); switch (fieldnumber) { case 1: this.roleId = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 2: this.magicCode = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 3: ProtoUtil.ListMemberFromBytes <SpriteHitedInnerData>(this.enemys, data, wt, ref pos, ref mycount); break; default: throw new ArgumentException("error!!!"); } } return(pos); }
public int fromBytes(byte[] data, int offset, int count) { int pos = offset; int mycount = 0; for (; mycount < count;) { int fieldnumber = -1; int wt = -1; ProtoUtil.GetTag(data, ref pos, ref fieldnumber, ref wt, ref mycount); switch (fieldnumber) { case 1: this.roleID = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 2: this.npcID = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 3: this.taskID = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 4: this.state = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; default: { throw new ArgumentException("error!!!"); } } } return(pos); }
public int fromBytes(byte[] data, int offset, int count) { int pos = offset; int mycount = 0; for (; mycount < count;) { int fieldnumber = -1; int wt = -1; ProtoUtil.GetTag(data, ref pos, ref fieldnumber, ref wt, ref mycount); switch (fieldnumber) { case 1: this.RoleID = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 2: this.RandToken = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 3: this.Ticks = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 4: this.ReportCliRealTick = ProtoUtil.LongMemberFromBytes(data, wt, ref pos, ref mycount); break; default: { throw new ArgumentException("error!!!"); } } } return(pos); }
public int fromBytes(byte[] data, int offset, int count) { int pos = offset; int mycount = 0; for (; mycount < count;) { int fieldnumber = -1; int wt = -1; ProtoUtil.GetTag(data, ref pos, ref fieldnumber, ref wt, ref mycount); switch (fieldnumber) { case 1: this.RoleID = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 2: this.Strength = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 3: this.Intelligence = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 4: this.Dexterity = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 5: this.Constitution = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; default: { throw new ArgumentException("error!!!"); } } } return(pos); }
public int fromBytes(byte[] data, int offset, int count) { int pos = offset; int mycount = 0; for (; mycount < count;) { int fieldnumber = -1; int wt = -1; ProtoUtil.GetTag(data, ref pos, ref fieldnumber, ref wt, ref mycount); switch (fieldnumber) { case 1: this.RoleID = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 2: this.TeleportID = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 3: this.NewMapCode = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 4: this.ToNewMapX = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 5: this.ToNewMapY = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 6: this.ToNewDiection = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 7: this.State = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; default: { throw new ArgumentException("error!!!"); } } } return(pos); }
public int fromBytes(byte[] data, int offset, int count) { int pos = offset; int mycount = 0; while (mycount < count) { int fieldnumber = -1; int wt = -1; ProtoUtil.GetTag(data, ref pos, ref fieldnumber, ref wt, ref mycount); switch (fieldnumber) { case 1: this.RoleID = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 2: this.NextStarLevel = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 3: this.NextStarExp = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 4: this.State = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; default: throw new ArgumentException("error!!!"); } } return(pos); }
public int fromBytes(byte[] data, int offset, int count) { int pos = offset; int mycount = 0; while (mycount < count) { int fieldnumber = -1; int wt = -1; ProtoUtil.GetTag(data, ref pos, ref fieldnumber, ref wt, ref mycount); switch (fieldnumber) { case 1: this.enemy = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 2: this.burst = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 3: this.injure = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 4: this.enemyLife = ProtoUtil.DoubleMemberFromBytes(data, wt, ref pos, ref mycount); break; case 5: this.newExperience = ProtoUtil.LongMemberFromBytes(data, wt, ref pos, ref mycount); break; case 6: this.currentExperience = ProtoUtil.LongMemberFromBytes(data, wt, ref pos, ref mycount); break; case 7: this.newLevel = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 8: this.MerlinInjuer = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 9: this.MerlinType = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 10: this.armorV_p1 = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; default: throw new ArgumentException("error!!!"); } } return(pos); }
public int fromBytes(byte[] data, int offset, int count) { int pos = offset; int mycount = 0; while (mycount < count) { int fieldnumber = -1; int wt = -1; ProtoUtil.GetTag(data, ref pos, ref fieldnumber, ref wt, ref mycount); switch (fieldnumber) { case 1: this.roleID = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 2: this.mapCode = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 3: this.action = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 4: this.toX = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 5: this.toY = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 6: this.extAction = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 7: this.fromX = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 8: this.fromY = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 9: this.startMoveTicks = ProtoUtil.LongMemberFromBytes(data, wt, ref pos, ref mycount); break; case 10: this.pathString = ProtoUtil.StringMemberFromBytes(data, wt, ref pos, ref mycount); break; default: throw new ArgumentException("error!!!"); } } return(pos); }
public int fromBytes(byte[] data, int offset, int count) { int pos = offset; int mycount = 0; while (mycount < count) { int fieldnumber = -1; int wt = -1; ProtoUtil.GetTag(data, ref pos, ref fieldnumber, ref wt, ref mycount); switch (fieldnumber) { case 1: this.roleID = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 2: this.roleX = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 3: this.roleY = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 4: this.enemy = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 5: this.enemyX = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 6: this.enemyY = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 7: this.realEnemyX = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 8: this.realEnemyY = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 9: this.magicCode = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 10: this.clientTicks = ProtoUtil.LongMemberFromBytes(data, wt, ref pos, ref mycount); break; } } return(pos); }
public int fromBytes(byte[] data, int offset, int count) { int pos = offset; int mycount = 0; while (mycount < count) { int fieldnumber = -1; int wt = -1; ProtoUtil.GetTag(data, ref pos, ref fieldnumber, ref wt, ref mycount); switch (fieldnumber) { case 1: this.State = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 2: this.ModType = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 3: this.ID = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 4: this.IsUsing = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 5: this.Site = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 6: this.Count = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 7: this.BagIndex = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 8: this.NewHint = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; default: throw new ArgumentException("error!!!"); } } return(pos); }
public int fromBytes(byte[] data, int offset, int count) { int pos = offset; int mycount = 0; for (; mycount < count;) { int fieldnumber = -1; int wt = -1; ProtoUtil.GetTag(data, ref pos, ref fieldnumber, ref wt, ref mycount); switch (fieldnumber) { case 1: this.RoleID = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 2: this.MapCode = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 3: this.StartMoveTicks = ProtoUtil.LongMemberFromBytes(data, wt, ref pos, ref mycount); break; case 4: this.CurrentX = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 5: this.CurrentY = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 6: this.CurrentDirection = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 7: this.Action = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 8: this.ToX = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 9: this.ToY = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 10: this.MoveCost = ProtoUtil.DoubleMemberFromBytes(data, wt, ref pos, ref mycount); break; case 11: this.ExtAction = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 12: this.PathString = ProtoUtil.StringMemberFromBytes(data, wt, ref pos, ref mycount); break; case 13: this.CurrentPathIndex = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; default: { throw new ArgumentException("error!!!"); } } } return(pos); }
public int fromBytes(byte[] data, int offset, int count) { int pos = offset; int mycount = 0; while (mycount < count) { int fieldnumber = -1; int wt = -1; ProtoUtil.GetTag(data, ref pos, ref fieldnumber, ref wt, ref mycount); switch (fieldnumber) { case 1: this.RoleID = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 2: this.Action = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 3: this.MapCode = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 4: this.ToMapX = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 5: this.ToMapY = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 6: this.ToDiection = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 7: this.TryRun = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 8: this.clientTicks = ProtoUtil.LongMemberFromBytes(data, wt, ref pos, ref mycount); break; } } return(pos); }
public int fromBytes(byte[] data, int offset, int count) { int pos = offset; int mycount = 0; while (mycount < count) { int fieldnumber = -1; int wt = -1; ProtoUtil.GetTag(data, ref pos, ref fieldnumber, ref wt, ref mycount); switch (fieldnumber) { case 1: this.roleID = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 2: this.lifeV = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 3: this.magicV = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 4: this.currentLifeV = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 5: this.currentMagicV = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 6: this.ArmorV = ProtoUtil.LongMemberFromBytes(data, wt, ref pos, ref mycount); break; case 7: this.currentArmorV = ProtoUtil.LongMemberFromBytes(data, wt, ref pos, ref mycount); break; default: throw new ArgumentException("error!!!"); } } return(pos); }
public int fromBytes(byte[] data, int offset, int count) { int pos = offset; int mycount = 0; for (; mycount < count;) { int fieldnumber = -1; int wt = -1; ProtoUtil.GetTag(data, ref pos, ref fieldnumber, ref wt, ref mycount); switch (fieldnumber) { case 1: this.roleID = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 2: this.mapCode = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 3: this.direction = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 4: this.action = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 5: this.toX = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 6: this.toY = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 7: this.targetX = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 8: this.targetY = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 9: this.yAngle = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 10: this.moveToX = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 11: this.moveToY = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 12: this.clientTicks = ProtoUtil.LongMemberFromBytes(data, wt, ref pos, ref mycount); break; //default: // { // throw new ArgumentException("error!!!"); // } } } return(pos); }
public String attackedList;//HX_SERVER 被攻击列表 public int fromBytes(byte[] data, int offset, int count) { int pos = offset; int mycount = 0; for (; mycount < count;) { int fieldnumber = -1; int wt = -1; ProtoUtil.GetTag(data, ref pos, ref fieldnumber, ref wt, ref mycount); switch (fieldnumber) { case 1: this.roleID = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 2: this.roleX = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 3: this.roleY = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 4: this.enemy = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 5: this.enemyX = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 6: this.enemyY = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 7: this.realEnemyX = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 8: this.realEnemyY = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 9: this.magicCode = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 10: this.clientTicks = ProtoUtil.LongMemberFromBytes(data, wt, ref pos, ref mycount); break; case 11: this.attackedList = ProtoUtil.StringMemberFromBytes(data, wt, ref pos, ref mycount); break; //default: // { // throw new ArgumentException("error!!!"); // } } } return(pos); }
public int fromBytes(byte[] data, int offset, int count) { int pos = offset; int mycount = 0; int arrCount = 0; while (mycount < count) { int fieldnumber = -1; int wt = -1; ProtoUtil.GetTag(data, ref pos, ref fieldnumber, ref wt, ref mycount); int num = fieldnumber; if (num != 1) { throw new ArgumentException("error!!!"); } arrCount++; ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); } if (arrCount > 0) { this.arrIconState = new ushort[arrCount]; pos = offset; mycount = 0; arrCount = 0; while (mycount < count) { int fieldnumber = -1; int wt = -1; ProtoUtil.GetTag(data, ref pos, ref fieldnumber, ref wt, ref mycount); int num = fieldnumber; if (num != 1) { throw new ArgumentException("error!!!"); } this.arrIconState[arrCount++] = (ushort)ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); } } return(pos); }
public int fromBytes(byte[] data, int offset, int count) { int pos = offset; int mycount = 0; for (; mycount < count;) { int fieldnumber = -1; int wt = -1; ProtoUtil.GetTag(data, ref pos, ref fieldnumber, ref wt, ref mycount); switch (fieldnumber) { case 1: this.RoleID = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 2: this.Action = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 3: this.MapCode = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 4: this.ToMapX = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 5: this.ToMapY = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 6: this.ToDiection = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 7: this.TryRun = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 8: this.clientTicks = ProtoUtil.LongMemberFromBytes(data, wt, ref pos, ref mycount); break; //default: // { // throw new ArgumentException("error!!!"); // } } } return(pos); }
public int fromBytes(byte[] data, int offset, int count) { int pos = offset; int mycount = 0; while (mycount < count) { int fieldnumber = -1; int wt = -1; ProtoUtil.GetTag(data, ref pos, ref fieldnumber, ref wt, ref mycount); switch (fieldnumber) { case 1: this.attackerRoleID = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 2: this.injuredRoleID = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 3: this.burst = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 4: this.injure = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 5: this.injuredRoleLife = ProtoUtil.LongMemberFromBytes(data, wt, ref pos, ref mycount); break; case 6: this.attackerLevel = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 7: this.injuredRoleMaxLifeV = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 8: this.injuredRoleMagic = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 9: this.injuredRoleMaxMagicV = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 10: this.hitToGridX = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 11: this.hitToGridY = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 12: this.MerlinInjuer = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 13: this.MerlinType = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 14: this.stopCaiJi = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 15: this.armorV_p1 = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; default: throw new ArgumentException("error!!!"); } } return(pos); }
public int fromBytes(byte[] data, int offset, int count) { int pos = offset; int mycount = 0; while (mycount < count) { int fieldnumber = -1; int wt = -1; ProtoUtil.GetTag(data, ref pos, ref fieldnumber, ref wt, ref mycount); switch (fieldnumber) { case 1: this.roleID = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 2: this.mapCode = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 3: this.direction = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 4: this.action = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 5: this.toX = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 6: this.toY = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 7: this.targetX = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 8: this.targetY = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 9: this.yAngle = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 10: this.moveToX = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 11: this.moveToY = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 12: this.clientTicks = ProtoUtil.LongMemberFromBytes(data, wt, ref pos, ref mycount); break; } } return(pos); }
public int fromBytes(byte[] data, int offset, int count) { int pos = offset; int mycount = 0; while (mycount < count) { int fieldnumber = -1; int wt = -1; ProtoUtil.GetTag(data, ref pos, ref fieldnumber, ref wt, ref mycount); switch (fieldnumber) { case 1: this.ownerRoleID = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 2: this.ownerRoleName = ProtoUtil.StringMemberFromBytes(data, wt, ref pos, ref mycount); break; case 3: this.autoID = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 4: this.goodsPackID = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 5: this.mapCode = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 6: this.toX = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 7: this.toY = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 8: this.goodsID = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 9: this.goodsNum = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 10: this.productTicks = ProtoUtil.LongMemberFromBytes(data, wt, ref pos, ref mycount); break; case 11: this.teamID = (long)ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 12: this.teamRoleIDs = ProtoUtil.StringMemberFromBytes(data, wt, ref pos, ref mycount); break; case 13: this.lucky = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 14: this.excellenceInfo = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 15: this.appendPropLev = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 16: this.forge_Level = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; default: throw new ArgumentException("error!!!"); } } return(pos); }