Exemplo n.º 1
0
        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;
 }
Exemplo n.º 3
0
 internal void RemoveFriend(Befriendable friend)
 {
     _befriendables.Remove(friend);
 }
Exemplo n.º 4
0
 internal void AddFriend(Befriendable friend)
 {
     _befriendables.Add(friend);
 }
Exemplo n.º 5
0
 public MessengerManager RemoveBefriendableFromCategory(Befriendable befriendable, Category category)
 {
     category.RemoveFriend(befriendable);
     return this;
 }
Exemplo n.º 6
0
 public MessengerManager AddBefriendableToCategory(Befriendable befriendable, Category category)
 {
     category.AddFriend(befriendable);
     return this;
 }