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; 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.x = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 3: this.y = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 4: this.direction = ProtoUtil.IntMemberFromBytes(data, wt, ref pos, ref mycount); break; case 5: this.lifeV = ProtoUtil.DoubleMemberFromBytes(data, wt, ref pos, ref mycount); break; case 6: this.magicV = ProtoUtil.DoubleMemberFromBytes(data, wt, ref pos, ref mycount); break; case 7: this.force = 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; case 11: this.moveCost = ProtoUtil.DoubleMemberFromBytes(data, wt, ref pos, ref mycount); break; default: throw new ArgumentException("error!!!"); } } return(pos); }