csharp
public interface ISocialStoreWhere the durable half of social state is kept.
Remarks
⚠ An interface for the reason IPityStore is one: a guild roster and a friends list are a grain's, doc 28's spine says Gameplay/ may not reference Live/, and doc 27 hands IGuildGrain to this document rather than building it. So the realm fills this and a test fills it with MemorySocialStore.
Methods (5)
Guild? LoadGuild(GuildId id)Loads a guild.
void SaveGuild(Guild guild)Writes a guild back.
GuildId GuildOf(PlayerId player)Which guild somebody is in.
SocialGraph? LoadGraph(PlayerId player)Loads somebody's friends and blocks.
void SaveGraph(SocialGraph graph)Writes a graph back.
Used by (2)
- MemorySocialStoreVixen.Gameplay.Social
- SocialBridgeVixen.Live.Gameplay