public byte[] toBytes() { int total = 0; total += ProtoUtil.GetIntSize(State, true, 1); total += ProtoUtil.GetIntSize(ModType, true, 2); total += ProtoUtil.GetIntSize(ID, true, 3); total += ProtoUtil.GetIntSize(IsUsing, true, 4); total += ProtoUtil.GetIntSize(Site, true, 5); total += ProtoUtil.GetIntSize(Count, true, 6); total += ProtoUtil.GetIntSize(BagIndex, true, 7); total += ProtoUtil.GetIntSize(NewHint, true, 8); byte[] data = new byte[total]; int offset = 0; ProtoUtil.IntMemberToBytes(data, 1, ref offset, State); ProtoUtil.IntMemberToBytes(data, 2, ref offset, ModType); ProtoUtil.IntMemberToBytes(data, 3, ref offset, ID); ProtoUtil.IntMemberToBytes(data, 4, ref offset, IsUsing); ProtoUtil.IntMemberToBytes(data, 5, ref offset, Site); ProtoUtil.IntMemberToBytes(data, 6, ref offset, Count); ProtoUtil.IntMemberToBytes(data, 7, ref offset, BagIndex); ProtoUtil.IntMemberToBytes(data, 8, ref offset, NewHint); 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(RoleID, true, 1); total += ProtoUtil.GetIntSize(TeleportID, true, 2); total += ProtoUtil.GetIntSize(NewMapCode, true, 3); total += ProtoUtil.GetIntSize(ToNewMapX, true, 4); total += ProtoUtil.GetIntSize(ToNewMapY, true, 5); total += ProtoUtil.GetIntSize(ToNewDiection, true, 6); total += ProtoUtil.GetIntSize(State, true, 7); byte[] data = new byte[total]; int offset = 0; ProtoUtil.IntMemberToBytes(data, 1, ref offset, RoleID); ProtoUtil.IntMemberToBytes(data, 2, ref offset, TeleportID); ProtoUtil.IntMemberToBytes(data, 3, ref offset, NewMapCode); ProtoUtil.IntMemberToBytes(data, 4, ref offset, ToNewMapX); ProtoUtil.IntMemberToBytes(data, 5, ref offset, ToNewMapY); ProtoUtil.IntMemberToBytes(data, 6, ref offset, ToNewDiection); ProtoUtil.IntMemberToBytes(data, 7, ref offset, State); 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.Error, true, 1); total += ProtoUtil.GetIntSize(this.DbId, true, 2); total += ProtoUtil.GetIntSize(this.Cnt, true, 3); byte[] data = new byte[total]; int offset = 0; ProtoUtil.IntMemberToBytes(data, 1, ref offset, this.Error); ProtoUtil.IntMemberToBytes(data, 2, ref offset, this.DbId); ProtoUtil.IntMemberToBytes(data, 3, ref offset, this.Cnt); /* * MemoryStream ms = new MemoryStream(); * * Serializer.Serialize<SC_SprUseGoods>(ms,this); * ms.Position = 0; * byte[] buff = new byte[ ms.Length ]; * ms.Read(buff, 0, (int)ms.Length);*/ 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(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(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(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 = this.getBytesSize(); byte[] data = new byte[total]; int offset = 0; ProtoUtil.IntMemberToBytes(data, 1, ref offset, this.ownerRoleID, true, 0); ProtoUtil.StringMemberToBytes(data, 2, ref offset, this.ownerRoleName); ProtoUtil.IntMemberToBytes(data, 3, ref offset, this.autoID, true, 0); ProtoUtil.IntMemberToBytes(data, 4, ref offset, this.goodsPackID, true, 0); ProtoUtil.IntMemberToBytes(data, 5, ref offset, this.mapCode, true, 0); ProtoUtil.IntMemberToBytes(data, 6, ref offset, this.toX, true, 0); ProtoUtil.IntMemberToBytes(data, 7, ref offset, this.toY, true, 0); ProtoUtil.IntMemberToBytes(data, 8, ref offset, this.goodsID, true, 0); ProtoUtil.IntMemberToBytes(data, 9, ref offset, this.goodsNum, true, 0); ProtoUtil.LongMemberToBytes(data, 10, ref offset, this.productTicks, true, 0L); ProtoUtil.LongMemberToBytes(data, 11, ref offset, this.teamID, true, 0L); ProtoUtil.StringMemberToBytes(data, 12, ref offset, this.teamRoleIDs); ProtoUtil.IntMemberToBytes(data, 13, ref offset, this.lucky, true, 0); ProtoUtil.IntMemberToBytes(data, 14, ref offset, this.excellenceInfo, true, 0); ProtoUtil.IntMemberToBytes(data, 15, ref offset, this.appendPropLev, true, 0); ProtoUtil.IntMemberToBytes(data, 16, ref offset, this.forge_Level, true, 0); 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(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.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.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(this.State, true, 1, true, 0); total += ProtoUtil.GetIntSize(this.ModType, true, 2, true, 0); total += ProtoUtil.GetIntSize(this.ID, true, 3, true, 0); total += ProtoUtil.GetIntSize(this.IsUsing, true, 4, true, 0); total += ProtoUtil.GetIntSize(this.Site, true, 5, true, 0); total += ProtoUtil.GetIntSize(this.Count, true, 6, true, 0); total += ProtoUtil.GetIntSize(this.BagIndex, true, 7, true, 0); total += ProtoUtil.GetIntSize(this.NewHint, true, 8, true, 0); byte[] data = new byte[total]; int offset = 0; ProtoUtil.IntMemberToBytes(data, 1, ref offset, this.State, true, 0); ProtoUtil.IntMemberToBytes(data, 2, ref offset, this.ModType, true, 0); ProtoUtil.IntMemberToBytes(data, 3, ref offset, this.ID, true, 0); ProtoUtil.IntMemberToBytes(data, 4, ref offset, this.IsUsing, true, 0); ProtoUtil.IntMemberToBytes(data, 5, ref offset, this.Site, true, 0); ProtoUtil.IntMemberToBytes(data, 6, ref offset, this.Count, true, 0); ProtoUtil.IntMemberToBytes(data, 7, ref offset, this.BagIndex, true, 0); ProtoUtil.IntMemberToBytes(data, 8, ref offset, this.NewHint, true, 0); 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 = this.getMySize(); 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.magicCode, true, 0); ProtoUtil.ListToBytes <SpriteHitedInnerData>(this.enemys, 3, ref offset, data); 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.currentLifeV, true, 4, 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.lifeV, true, 0); ProtoUtil.IntMemberToBytes(data, 4, ref offset, this.currentLifeV, true, 0); return(data); }
public byte[] toBytes() { int total = 0; total += ProtoUtil.GetIntSize(this.enemy, true, 1, true, 0); total += ProtoUtil.GetIntSize(this.enemyX, true, 2, true, 0); total += ProtoUtil.GetIntSize(this.enemyY, true, 3, 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.enemyX, true, 0); ProtoUtil.IntMemberToBytes(data, 3, ref offset, this.enemyY, true, 0); return(data); }
public byte[] toBytes() { int total = 0; total += ProtoUtil.GetIntSize(this.roleID, true, 1, true, 0); total += ProtoUtil.GetIntSize(this.magicV, true, 3, true, 0); total += ProtoUtil.GetIntSize(this.currentMagicV, true, 5, true, 0); byte[] data = new byte[total]; int offset = 0; ProtoUtil.IntMemberToBytes(data, 1, ref offset, this.roleID, true, 0); ProtoUtil.IntMemberToBytes(data, 3, ref offset, this.magicV, true, 0); ProtoUtil.IntMemberToBytes(data, 5, ref offset, this.currentMagicV, 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(magicCode, true, 3); 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, magicCode); return(data); }
public byte[] toBytes() { int total = 0; total += ProtoUtil.GetIntSize(this.RoleID, true, 1, true, 0); total += ProtoUtil.GetIntSize(this.NextStarLevel, true, 2, true, 0); total += ProtoUtil.GetIntSize(this.NextStarExp, true, 3, true, 0); total += ProtoUtil.GetIntSize(this.State, true, 4, 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.NextStarLevel, true, 0); ProtoUtil.IntMemberToBytes(data, 3, ref offset, this.NextStarExp, true, 0); ProtoUtil.IntMemberToBytes(data, 4, ref offset, this.State, true, 0); return(data); }
public byte[] toBytes() { int total = 0; total += ProtoUtil.GetIntSize(this.roleID, true, 1, true, 0); total += ProtoUtil.GetIntSize(this.npcID, true, 2, true, 0); total += ProtoUtil.GetIntSize(this.taskID, true, 3, true, 0); total += ProtoUtil.GetIntSize(this.state, true, 4, 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.npcID, true, 0); ProtoUtil.IntMemberToBytes(data, 3, ref offset, this.taskID, true, 0); ProtoUtil.IntMemberToBytes(data, 4, ref offset, this.state, true, 0); 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.DbId, true, 2, true, 0); total += ProtoUtil.GetIntSize(this.GoodsId, true, 3, true, 0); total += ProtoUtil.GetIntSize(this.UseNum, true, 4, 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.DbId, true, 0); ProtoUtil.IntMemberToBytes(data, 3, ref offset, this.GoodsId, true, 0); ProtoUtil.IntMemberToBytes(data, 4, ref offset, this.UseNum, true, 0); return(data); }
public byte[] toBytes() { int total = 0; total += ProtoUtil.GetIntSize(this.RoleId, true, 1); total += ProtoUtil.GetIntSize(this.MapId, true, 2); total += ProtoUtil.GetIntSize(this.FuBenId, true, 3); byte[] data = new byte[total]; int offset = 0; ProtoUtil.IntMemberToBytes(data, 1, ref offset, this.RoleId); ProtoUtil.IntMemberToBytes(data, 2, ref offset, this.MapId); ProtoUtil.IntMemberToBytes(data, 3, ref offset, this.FuBenId); return(data); }
public byte[] toBytes() { int total = 0; total += ProtoUtil.GetIntSize(State, true, 1); total += ProtoUtil.GetIntSize(RoleID, true, 2); total += ProtoUtil.GetIntSize(FightType, true, 3); total += ProtoUtil.GetIntSize(Tag, true, 4); byte[] data = new byte[total]; int offset = 0; ProtoUtil.IntMemberToBytes(data, 1, ref offset, State); ProtoUtil.IntMemberToBytes(data, 2, ref offset, RoleID); ProtoUtil.IntMemberToBytes(data, 3, ref offset, FightType); ProtoUtil.IntMemberToBytes(data, 4, ref offset, Tag); return(data); }
public byte[] toBytes() { int total = 0; total += ProtoUtil.GetIntSize(roleID, true, 1); total += ProtoUtil.GetIntSize(npcID, true, 2); total += ProtoUtil.GetIntSize(taskID, true, 3); total += ProtoUtil.GetIntSize(state, true, 4); byte[] data = new byte[total]; int offset = 0; ProtoUtil.IntMemberToBytes(data, 1, ref offset, roleID); ProtoUtil.IntMemberToBytes(data, 2, ref offset, npcID); ProtoUtil.IntMemberToBytes(data, 3, ref offset, taskID); ProtoUtil.IntMemberToBytes(data, 4, ref offset, state); return(data); }
public byte[] toBytes() { int total = 0; total += ProtoUtil.GetIntSize(RoleID, true, 1); total += ProtoUtil.GetIntSize(NextStarLevel, true, 2); total += ProtoUtil.GetIntSize(NextStarExp, true, 3); total += ProtoUtil.GetIntSize(State, true, 4); byte[] data = new byte[total]; int offset = 0; ProtoUtil.IntMemberToBytes(data, 1, ref offset, RoleID); ProtoUtil.IntMemberToBytes(data, 2, ref offset, NextStarLevel); ProtoUtil.IntMemberToBytes(data, 3, ref offset, NextStarExp); ProtoUtil.IntMemberToBytes(data, 4, ref offset, State); 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); }