コード例 #1
0
 /// <summary>
 ///     Adds the specified message.
 /// </summary>
 /// <param name="message">The message.</param>
 /// <param name="premiumTimeLeft">The premium time left.</param>
 /// <param name="vocation">The vocation.</param>
 /// <param name="spells">The spells.</param>
 public static void Add(NetworkMessage message, TimeSpan premiumTimeLeft, IVocation vocation, ICollection <ISpell> spells)
 {
     message.AddPacketType(GamePacketType.SelfBasicData);
     message.AddBoolean(premiumTimeLeft > TimeSpan.Zero);
     message.AddTimeSpan(premiumTimeLeft);
     message.AddByte(vocation.Id);
     AddSpells(message, spells);
 }