mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-07-07 15:10:27 -04:00
Removed NioTSO client and server
- NioTSO client isn't needed because we're using RayLib - Added FreeSO's API server to handle most backend operations
This commit is contained in:
parent
f12ba1502b
commit
22191ce648
591 changed files with 53264 additions and 3362 deletions
51
server/FSO.Server.Database/DA/Avatars/IAvatars.cs
Executable file
51
server/FSO.Server.Database/DA/Avatars/IAvatars.cs
Executable file
|
@ -0,0 +1,51 @@
|
|||
using FSO.Server.Database.DA.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace FSO.Server.Database.DA.Avatars
|
||||
{
|
||||
public interface IAvatars
|
||||
{
|
||||
uint Create(DbAvatar avatar);
|
||||
|
||||
DbAvatar Get(uint id);
|
||||
List<DbAvatar> GetMultiple(uint[] id);
|
||||
bool Delete(uint id);
|
||||
int GetPrivacyMode(uint id);
|
||||
int GetModerationLevel(uint id);
|
||||
DbJobLevel GetCurrentJobLevel(uint avatar_id);
|
||||
List<DbJobLevel> GetJobLevels(uint avatar_id);
|
||||
IEnumerable<DbAvatar> All();
|
||||
IEnumerable<DbAvatar> All(int shard_id);
|
||||
PagedList<DbAvatar> AllByPage(int shard_id, int offset, int limit, string orderBy);
|
||||
List<uint> GetLivingInNhood(uint nhood_id);
|
||||
List<AvatarRating> GetPossibleCandidatesNhood(uint nhood_id);
|
||||
|
||||
List<DbAvatar> GetByUserId(uint user_id);
|
||||
List<DbAvatarSummary> GetSummaryByUserId(uint user_id);
|
||||
|
||||
int GetOtherLocks(uint avatar_id, string except);
|
||||
|
||||
int GetBudget(uint avatar_id);
|
||||
DbTransactionResult Transaction(uint source_id, uint avatar_id, int amount, short reason);
|
||||
DbTransactionResult Transaction(uint source_id, uint avatar_id, int amount, short reason, Func<bool> transactionInject);
|
||||
DbTransactionResult TestTransaction(uint source_id, uint avatar_id, int amount, short reason);
|
||||
|
||||
void UpdateDescription(uint id, string description);
|
||||
void UpdatePrivacyMode(uint id, byte privacy);
|
||||
void UpdateAvatarLotSave(uint id, DbAvatar avatar);
|
||||
void UpdateAvatarJobLevel(DbJobLevel jobLevel);
|
||||
void UpdateMoveDate(uint id, uint date);
|
||||
void UpdateMayorNhood(uint id, uint? nhood);
|
||||
|
||||
List<DbAvatar> SearchExact(int shard_id, string name, int limit);
|
||||
List<DbAvatar> SearchWildcard(int shard_id, string name, int limit);
|
||||
}
|
||||
|
||||
public class AvatarRating
|
||||
{
|
||||
public uint avatar_id { get; set; }
|
||||
public string name { get; set; }
|
||||
public float? rating { get; set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue