RxFriendUtils
Utilities for observing the local player's friends.
Functions
observeFriendsInServerAsBrios
Observe friends in the current server (not including the LocalPlayer!), useful for social GUIs. The lifetimes exist for the whole duration another player is a friend and in your server. This means if a player is unfriended + friended multiple times per session, they will have emitted multiple friend lifetimes.
Works against PlayerMock players on either side: mocks in the DataModel are enumerated alongside real players, friendship resolves from the mock's "Player.IsFriendsWithAsync" lookup domain, and a mid-test PlayerMock.writeLookup to that domain stands in for the CoreGui friended/unfriended events -- the observable re-reads and emits/kills lifetimes accordingly.