mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 20:07:22 +01:00
some fixes on cache creation stuff I think
This commit is contained in:
parent
e4a6657391
commit
6fc2f1e90c
7 changed files with 43 additions and 49 deletions
|
|
@ -7,25 +7,25 @@ public class UserPermissionQuery
|
|||
public string Alias { get; set; }
|
||||
public string GID { get; set; }
|
||||
public bool Synced { get; set; }
|
||||
public bool OwnpermIsPaused { get; set; }
|
||||
public bool OwnpermSticky { get; set; }
|
||||
public bool OwnpermDisableAnimations { get; set; }
|
||||
public bool OwnpermDisableSounds { get; set; }
|
||||
public bool OwnpermDisableVFX { get; set; }
|
||||
public bool? OwnpermIsPaused { get; set; }
|
||||
public bool? OwnpermSticky { get; set; }
|
||||
public bool? OwnpermDisableAnimations { get; set; }
|
||||
public bool? OwnpermDisableSounds { get; set; }
|
||||
public bool? OwnpermDisableVFX { get; set; }
|
||||
public bool? OtherpermIsPaused { get; set; }
|
||||
public bool? OtherpermDisableAnimations { get; set; }
|
||||
public bool? OtherpermDisableSounds { get; set; }
|
||||
public bool? OtherpermDisableVFX { get; set; }
|
||||
|
||||
public UserPermissionSet OwnPermissions => new UserPermissionSet
|
||||
public UserPermissionSet? OwnPermissions => OwnpermSticky == null ? null : new UserPermissionSet
|
||||
{
|
||||
UserUID = UserUID,
|
||||
OtherUserUID = OtherUserUID,
|
||||
IsPaused = OwnpermIsPaused,
|
||||
DisableAnimations = OwnpermDisableAnimations,
|
||||
DisableSounds = OwnpermDisableSounds,
|
||||
DisableVFX = OwnpermDisableVFX,
|
||||
Sticky = OwnpermSticky
|
||||
IsPaused = OwnpermIsPaused.Value,
|
||||
DisableAnimations = OwnpermDisableAnimations.Value,
|
||||
DisableSounds = OwnpermDisableSounds.Value,
|
||||
DisableVFX = OwnpermDisableVFX.Value,
|
||||
Sticky = OwnpermSticky.Value
|
||||
};
|
||||
|
||||
public UserPermissionSet? OtherPermissions => !Synced ? null : new UserPermissionSet
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue