Table of Contents

Interface IFriendController

Namespace
FishMMO.Shared.Core
Assembly
FishMMO.Shared.dll

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

HashSet<long>

Methods

AddFriend(long)

Adds a friend by ID if not already present.

void AddFriend(long friendID)

Parameters

friendID long

The 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

Action<long, bool>

OnRemoveFriend

Event invoked when a friend is removed. Parameter: friend ID.

event Action<long> OnRemoveFriend

Event Type

Action<long>