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; }
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); } }
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; }