Interface IFriendController
Interface for friend controllers, providing access and management for a character's friend list. Used to add, remove, and track friends, and handle related events.
public interface IFriendController : ICharacterBehaviour
- Inherited Members
Properties
Friends
Set of friend IDs for this character.
HashSet<long> Friends { get; }
Property Value
Methods
AddFriend(long)
Adds a friend by ID if not already present.
void AddFriend(long friendID)
Parameters
friendIDlongThe ID of the friend to add.
Events
OnAddFriend
Event invoked when a friend is added. Parameters: friend ID, online status.
event Action<long, bool> OnAddFriend
Event Type
OnRemoveFriend
Event invoked when a friend is removed. Parameter: friend ID.
event Action<long> OnRemoveFriend