/// <summary> /// Sends the login window. /// </summary> /// <param name="remainingPremiumDays">The remaining premium days.</param> /// <param name="userName">The user name.</param> /// <param name="password">The password.</param> /// <param name="characters">The characters.</param> /// <param name="worlds">The worlds.</param> /// <param name="messageOfTheDay">The message of the day.</param> public void SendLoginWindow(int remainingPremiumDays, string userName, string password, ICollection <ICharacterSpawn> characters, ICollection <World> worlds, INotification messageOfTheDay) { NetworkMessage message = new NetworkMessage(Xtea); MessageOfTheDayPacket.Add(message, messageOfTheDay); SessionKeyPacket.Add(message, userName, password); CharacterListPacket.Add(message, worlds, characters); PremiumDaysPacket.Add(message, remainingPremiumDays); Send(message); }
public void SendCharacterList(string motd, ushort premiumDays, IEnumerable <CharacterListItem> chars) { NetworkMessage message = new NetworkMessage(); if (motd != string.Empty) { MessageOfTheDayPacket.Add( message, motd ); } CharacterListPacket.Add( message, chars, premiumDays ); Send(message); }