public Befriendable GetBefriendable(Habbo habbo) { Befriendable befriendableInstance = habbo.InstanceStorage[_pluginInstance, "befriendable_instance"]; if (befriendableInstance == null) { befriendableInstance = new Befriendable( (() => habbo.Id), (() => habbo.DisplayName), (() => habbo.Motto), (() => habbo.Figure), (() => habbo.Position), (() => habbo.LoggedIn), (() => habbo.LastAccess)); habbo.InstanceStorage[_pluginInstance, "befriendable_instance"] = befriendableInstance; } return befriendableInstance; }
public CategoryBefriendablesEventArgs AddBefriendable(Befriendable befriendable) { _befriendables.Add(befriendable); return this; }
internal void RemoveFriend(Befriendable friend) { _befriendables.Remove(friend); }
internal void AddFriend(Befriendable friend) { _befriendables.Add(friend); }
public MessengerManager RemoveBefriendableFromCategory(Befriendable befriendable, Category category) { category.RemoveFriend(befriendable); return this; }
public MessengerManager AddBefriendableToCategory(Befriendable befriendable, Category category) { category.AddFriend(befriendable); return this; }