Exemple #1
0
 public void SetIcon(Constants.Vip.Icons icon)
 {
     if (!Enum.IsDefined(typeof(Constants.Vip.Icons), icon))
     {
         return;
     }
     this.Client.Memory.WriteByte(this.Address + this.Client.Addresses.Vip.Distances.Icon, (byte)icon);
     this.Icon = icon;
 }
Exemple #2
0
 public IEnumerable <Character> GetCharacters(Constants.Vip.Icons icon, bool onlineOnly = false)
 {
     foreach (Character c in this.GetCharacters(onlineOnly))
     {
         if (c.Icon != icon)
         {
             continue;
         }
         yield return(c);
     }
 }
Exemple #3
0
 public Character(Client client, int address, uint id, string name, bool online, Constants.Vip.Icons icon)
 {
     this.Client  = client;
     this.Address = address;
     this.ID      = id;
     this.Name    = name;
     this.Online  = online;
     this.Icon    = icon;
 }