csharp
public sealed class SocialGraphsEverybody's graphs together, which is what makes a block mean anything.
Remarks
A block is a fact about a pair, and one player's graph can only hold half of it. This is the half that knows both — it is what a realm holds, and it is what PresenceBook and a group invite ask.
Fields and properties (1)
public int CountHow many players it knows about.
Methods (7)
public SocialGraph Of(PlayerId player)One player's graph, making an empty one if there is none.
public bool Forget(PlayerId player)Drops one player's graph.
public bool HasBlocked(PlayerId who, PlayerId whom)Whether one player has blocked another.
public bool IsSevered(PlayerId left, PlayerId right)Whether anything at all stops two players interacting.
public bool Request(PlayerId from, PlayerId to)Sends a friend request and records it on both sides.
public bool Accept(PlayerId who, PlayerId from)Accepts a request on both sides.
public bool Unfriend(PlayerId who, PlayerId other)Ends a friendship on both sides, because half a friendship is a support ticket.
Used by (7)
- GroupTestsVixen.Gameplay.Social.Tests
- HousekeepingTestsVixen.Live.Gameplay.Tests
- PresenceBookVixen.Gameplay.Social
- PresenceTestsVixen.Gameplay.Social.Tests
- SocialBridgeVixen.Live.Gameplay
- SocialBridgeTestsVixen.Live.Gameplay.Tests
- SocialGraphTestsVixen.Gameplay.Social.Tests