Interface ICharacterBuffService
- Namespace
- FishMMO.Database.Npgsql.Services.Interfaces
- Assembly
- FishMMO-DB.dll
Service interface for reading character buffs, and for tombstoning them on character deletion.
public interface ICharacterBuffService : IDeleteByKeyVersionedAction<long>, IFetchCollectionByKeyAction<long, CharacterBuffData>
- Inherited Members
Remarks
There is deliberately no write here. A character's buffs are written as one set with
its character row — Buffs, applied by
ICharacterService.PersistOwnedAsync, PersistAsync and PersistManyAsync —
because the row's version is the only per-character ordering that can make "delete what the
set no longer names" safe against saves landing out of order. The per-row upsert that used to
be here could only add and overwrite, so an expired or dismissed buff came back at the next
login; a second writer beside the set would reopen exactly that.