-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathIDatabaseCache.cs
27 lines (23 loc) · 1.29 KB
/
IDatabaseCache.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using Cysharp.Threading.Tasks;
using System.Collections.Generic;
namespace MultiplayerARPG.MMO
{
public partial interface IDatabaseCache
{
UniTask<bool> SetSocialCharacter(SocialCharacterData playerCharacter);
UniTask<DatabaseCacheResult<SocialCharacterData>> GetSocialCharacter(string characterId);
UniTask<bool> RemoveSocialCharacter(string characterId);
UniTask<bool> SetSocialCharacterPartyId(string characterId, int partyId);
UniTask<bool> SetSocialCharacterGuildId(string characterId, int guildId);
UniTask<bool> SetSocialCharacterGuildIdAndRole(string characterId, int guildId, byte guildRole);
UniTask<bool> SetParty(PartyData party);
UniTask<DatabaseCacheResult<PartyData>> GetParty(int id);
UniTask<bool> RemoveParty(int id);
UniTask<bool> SetGuild(GuildData guild);
UniTask<DatabaseCacheResult<GuildData>> GetGuild(int id);
UniTask<bool> RemoveGuild(int id);
UniTask<bool> SetStorageItems(StorageType storageType, string storageOwnerId, List<CharacterItem> items);
UniTask<DatabaseCacheResult<List<CharacterItem>>> GetStorageItems(StorageType storageType, string storageOwnerId);
UniTask<bool> RemoveStorageItems(StorageType storageType, string storageOwnerId);
}
}