public override void Serialize(JHSNetworkWriter writer) { writer.Write((byte)STATUS); if (STATUS == SUCCESS) { writer.WritePackedUInt32(REQ); writer.WritePackedUInt32(player.Base.UserId); writer.WritePackedUInt32(player.Base.PlayerId); writer.WritePackedUInt32(player.Base.ModelId); writer.Write(player.Custom.PlayerName); writer.Write(player.Custom.SkinColorId); writer.Write(player.Custom.HairColorId); writer.Write(player.Custom.EyeColorId); writer.Write(player.Custom.ShirtColorId); writer.Write(player.Custom.PantsColorId); writer.Write(player.Custom.BootsColorId); writer.Write(player.Custom.GlovesColorId); int lenghxt = player.Actives.Length; writer.Write((byte)lenghxt); for (int i = 0; i < lenghxt; i++) { writer.WritePackedUInt32(player.Actives[i].ActiveId); writer.WritePackedUInt32(player.Actives[i].Value); } } }
public override void Serialize(JHSNetworkWriter writer) { writer.WritePackedUInt32(PassWord); writer.WritePackedUInt32(Port); writer.Write(IP); writer.Write((byte)gameMatchState); }
public override void Serialize(JHSNetworkWriter writer) { writer.Write((byte)code); if (code == ErrorCodes.SUCCESS) { writer.WritePackedUInt32(Time); writer.Write(Url); } }
public override void Serialize(JHSNetworkWriter writer) { writer.Write((byte)Code); if (Code == ErrorCodes.SUCCESS) { writer.Write(UserName); writer.Write(Password); } }
public override void Serialize(JHSNetworkWriter writer) { writer.Write((byte)op); if (op == SearchMatchOperations.Search) { writer.WritePackedUInt32(value); } if (op == SearchMatchOperations.START) { writer.Write(IP); writer.Write(port); } }
public override void Serialize(JHSNetworkWriter writer) { writer.Write(HasWon); writer.WritePackedUInt32(UserId); writer.WritePackedUInt32(KillCount); writer.WritePackedUInt32(EXP); int lenghxty = Actives.Length; writer.Write((byte)lenghxty); for (int i = 0; i < lenghxty; i++) { writer.WritePackedUInt32(Actives[i].ActiveId); writer.WritePackedUInt32(Actives[i].Value); } }
public override void Serialize(JHSNetworkWriter writer) { writer.Write((byte)PayLoadType); if (PayLoadType == RankingPacketType.UPDATE_DATA) { int dataLenght = rankingData.Length; writer.Write((byte)dataLenght); for (int i = 0; i < dataLenght; i++) { writer.Write(rankingData[i].PlayerName); //INDEX :D writer.WritePackedUInt32((uint)rankingData[i].LeaguePoints); writer.WritePackedUInt32((uint)rankingData[i].Kills); writer.WritePackedUInt32((uint)rankingData[i].Deaths); } writer.Write((byte)LeaguePosition); writer.Write((byte)GameCount); writer.WritePackedUInt32(LeaguePoints); writer.Write((byte)CurrentLeague); } if (PayLoadType == RankingPacketType.GAME_COUNT) { writer.Write((byte)GameCount); } }
public override void Serialize(JHSNetworkWriter writer) { writer.Write(STATUS); if (STATUS == 0) { writer.WritePackedUInt32(GoldValue); writer.WritePackedUInt32(SilverValue); } }
public override void Serialize(JHSNetworkWriter writer) { if (actives != null && actives.Length > 0) { int alenght = actives.Length; writer.Write((byte)alenght); for (int i = 0; i < alenght; i++) { writer.WritePackedUInt32(actives[i].Id); writer.WritePackedUInt32(actives[i].Value); writer.Write(actives[i].collected); } } else { writer.Write((byte)0); } }
public override void Serialize(JHSNetworkWriter writer) { writer.Write(STATUS); if (STATUS == 0) { writer.WritePackedUInt32(Gold); writer.WritePackedUInt32(Silver); writer.WritePackedUInt32(character.PlayerId); writer.WritePackedUInt32(character.ModelId); writer.Write(character.SkinColorId); writer.Write(character.HairColorId); writer.Write(character.EyeColorId); writer.Write(character.ShirtColorId); writer.Write(character.PantsColorId); writer.Write(character.BootsColorId); writer.Write(character.GlovesColorId); } }
public override void Serialize(JHSNetworkWriter writer) { writer.Write((byte)Code); if (Code == ErrorCodes.SUCCESS) { writer.WritePackedUInt32(Credits); writer.WritePackedUInt32(SurfedSites); writer.Write((byte)MemberType); writer.Write((byte)sites.Length); for (int i = 0; i < sites.Length; i++) { writer.Write((byte)sites[i].SiteIndex); writer.Write(sites[i].WebsiteName); writer.Write(sites[i].Url); writer.WritePackedUInt32(sites[i].Time); writer.WritePackedUInt32(sites[i].ViewCount); writer.Write(sites[i].IsActive); writer.Write((byte)sites[i].Region); writer.Write((byte)sites[i].Referral); } } }
public override void Serialize(JHSNetworkWriter writer) { writer.Write(isopen); }
public override void Serialize(JHSNetworkWriter writer) { writer.Write(Command); writer.WritePackedUInt32(Value); }
public override void Serialize(JHSNetworkWriter writer) { writer.Write(LoginName); writer.Write(Password); }
public override void Serialize(JHSNetworkWriter writer) { writer.Write((byte)STATUS); if (STATUS == SUCCESS) { writer.Write((byte)TYPE); writer.WritePackedUInt32(player.Base.UserId); switch (TYPE) { case InfoType.ACTIVE: int lenght = player.Actives.Length; writer.Write((byte)lenght); for (int i = 0; i < lenght; i++) { writer.WritePackedUInt32(player.Actives[i].ActiveId); writer.WritePackedUInt32(player.Actives[i].Value); } break; case InfoType.CUSTOMIZATIONS: writer.Write(player.Custom.PlayerName); writer.Write(player.Custom.SkinColorId); writer.Write(player.Custom.HairColorId); writer.Write(player.Custom.EyeColorId); writer.Write(player.Custom.ShirtColorId); writer.Write(player.Custom.PantsColorId); writer.Write(player.Custom.BootsColorId); writer.Write(player.Custom.GlovesColorId); break; case InfoType.STATUS: writer.WritePackedUInt32(player.Status.Level); writer.WritePackedUInt32(player.Status.Exp); writer.WritePackedUInt32(player.Status.MMR); writer.WritePackedUInt32(player.Status.Kills); writer.WritePackedUInt32(player.Status.Deaths); writer.WritePackedUInt32(player.Status.Golden); writer.WritePackedUInt32(player.Status.Silver); break; case InfoType.ACTIVE_AND_STATUS: writer.WritePackedUInt32(player.Status.Level); writer.WritePackedUInt32(player.Status.Exp); writer.WritePackedUInt32(player.Status.MMR); writer.WritePackedUInt32(player.Status.Kills); writer.WritePackedUInt32(player.Status.Deaths); writer.WritePackedUInt32(player.Status.Golden); writer.WritePackedUInt32(player.Status.Silver); int lenghxt = player.Actives.Length; writer.Write((byte)lenghxt); for (int i = 0; i < lenghxt; i++) { writer.WritePackedUInt32(player.Actives[i].ActiveId); writer.WritePackedUInt32(player.Actives[i].Value); } break; case InfoType.FULL: writer.WritePackedUInt32(player.Base.PlayerId); writer.Write(player.Base.ModelId); writer.Write(player.Custom.PlayerName); writer.Write(player.Custom.SkinColorId); writer.Write(player.Custom.HairColorId); writer.Write(player.Custom.EyeColorId); writer.Write(player.Custom.ShirtColorId); writer.Write(player.Custom.PantsColorId); writer.Write(player.Custom.BootsColorId); writer.Write(player.Custom.GlovesColorId); writer.WritePackedUInt32(player.Status.Level); writer.WritePackedUInt32(player.Status.Exp); writer.WritePackedUInt32(player.Status.MMR); writer.WritePackedUInt32(player.Status.Kills); writer.WritePackedUInt32(player.Status.Deaths); writer.WritePackedUInt32(player.Status.Golden); writer.WritePackedUInt32(player.Status.Silver); int lenghxty = player.Actives.Length; writer.Write((byte)lenghxty); for (int i = 0; i < lenghxty; i++) { writer.WritePackedUInt32(player.Actives[i].ActiveId); writer.WritePackedUInt32(player.Actives[i].Value); } break; } } }
public override void Serialize(JHSNetworkWriter writer) { writer.Write(msg); writer.Write(username); writer.WritePackedUInt64(date); }
public override void Serialize(JHSNetworkWriter writer) { writer.Write((byte)Code); if (Code == ErrorCodes.SUCCESS) { writer.Write((byte)Added.Length); writer.Write((byte)Changed.Length); writer.Write((byte)Deleted.Length); for (int i = 0; i < Added.Length; i++) { writer.Write((byte)Added[i].SiteIndex); writer.Write(Added[i].WebsiteName); writer.Write(Added[i].Url); writer.WritePackedUInt32(Added[i].Time); writer.WritePackedUInt32(Added[i].ViewCount); writer.Write(Added[i].IsActive); writer.Write((byte)Added[i].Region); writer.Write((byte)Added[i].Referral); } for (int i = 0; i < Changed.Length; i++) { writer.Write((byte)Changed[i].SiteIndex); writer.Write(Changed[i].WebsiteName); writer.Write(Changed[i].Url); writer.WritePackedUInt32(Changed[i].Time); writer.WritePackedUInt32(Changed[i].ViewCount); writer.Write(Changed[i].IsActive); writer.Write((byte)Changed[i].Region); writer.Write((byte)Changed[i].Referral); } for (int i = 0; i < Deleted.Length; i++) { writer.Write((byte)Deleted[i]); } } else if (Code == ErrorCodes.JUST_DATA_UPDATE) { writer.Write((byte)Changed.Length); for (int i = 0; i < Changed.Length; i++) { writer.Write((byte)Changed[i].SiteIndex); writer.Write(Changed[i].WebsiteName); writer.Write(Changed[i].Url); writer.WritePackedUInt32(Changed[i].Time); writer.WritePackedUInt32(Changed[i].ViewCount); writer.Write(Changed[i].IsActive); writer.Write((byte)Changed[i].Region); writer.Write((byte)Changed[i].Referral); } } }
public override void Serialize(JHSNetworkWriter writer) { writer.Write(RESPONSE); if (RESPONSE == SUCCESS) { writer.WriteBytesFull(Encoding.UTF8.GetBytes(PlayerNick)); writer.Write((byte)LeaguePosition); writer.WritePackedUInt32(Gold); writer.WritePackedUInt32(Silver); writer.WritePackedUInt32(LoginTocken); writer.Write(GameCount); writer.WritePackedUInt32(LEVEL); writer.WritePackedUInt32(EXP); writer.Write((byte)League); writer.Write(SEASON); writer.Write((byte)LEGUE_STATUS); writer.Write(Priviledge); if (characters != null && characters.Length > 0) { int lenght = characters.Length; writer.Write((byte)lenght); for (int i = 0; i < lenght; i++) { writer.WritePackedUInt32(characters[i].PlayerId); writer.WritePackedUInt32(characters[i].ModelId); writer.Write(characters[i].IsChanged); if (characters[i].IsChanged) { writer.Write(characters[i].SkinColorId); writer.Write(characters[i].HairColorId); writer.Write(characters[i].EyeColorId); writer.Write(characters[i].ShirtColorId); writer.Write(characters[i].PantsColorId); writer.Write(characters[i].BootsColorId); writer.Write(characters[i].GlovesColorId); } } } else { writer.Write((byte)0); } if (actives != null && actives.Length > 0) { int alenght = actives.Length; writer.Write((byte)alenght); for (int i = 0; i < alenght; i++) { writer.WritePackedUInt32(actives[i]); } } else { writer.Write((byte)0); } writer.Write(IsPushLevelUp); } }
public override void Serialize(JHSNetworkWriter writer) { writer.Write(WillReconnect); writer.Write((byte)reconnectTry); }
public override void Serialize(JHSNetworkWriter writer) { writer.WritePackedUInt32(PlayerId); writer.Write(SkinColorId_changed); writer.Write(HairColorId_changed); writer.Write(EyeColorId_changed); writer.Write(ShirtColorId_changed); writer.Write(PantsColorId_changed); writer.Write(BootsColorId_changed); writer.Write(GlovesColorId_changed); if (SkinColorId_changed) { writer.Write(SkinColorId); } if (HairColorId_changed) { writer.Write(HairColorId); } if (EyeColorId_changed) { writer.Write(EyeColorId); } if (ShirtColorId_changed) { writer.Write(ShirtColorId); } if (PantsColorId_changed) { writer.Write(PantsColorId); } if (BootsColorId_changed) { writer.Write(BootsColorId); } if (GlovesColorId_changed) { writer.Write(GlovesColorId); } }
public override void Serialize(JHSNetworkWriter writer) { writer.WritePackedUInt32(ModelId); writer.Write(BuyType); }
public override void Serialize(JHSNetworkWriter writer) { writer.WritePackedUInt32(Version); writer.Write(OP); }
public override void Serialize(JHSNetworkWriter writer) { writer.Write((byte)Type); writer.WritePackedUInt32(userId); writer.WritePackedUInt32(Req); }