Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ObjectAuditRule.cs
Go to the documentation of this file.
2
4
5public abstract class ObjectAuditRule : AuditRule
6{
7 private readonly Guid _objectType;
8
9 private readonly Guid _inheritedObjectType;
10
11 private readonly ObjectAceFlags _objectFlags;
12
14
16
18
19 protected ObjectAuditRule(IdentityReference identity, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, Guid objectType, Guid inheritedObjectType, AuditFlags auditFlags)
20 : base(identity, accessMask, isInherited, inheritanceFlags, propagationFlags, auditFlags)
21 {
22 if (!objectType.Equals(Guid.Empty) && ((uint)accessMask & 0x13Bu) != 0)
23 {
24 _objectType = objectType;
25 _objectFlags |= ObjectAceFlags.ObjectAceTypePresent;
26 }
27 else
28 {
30 }
31 if (!inheritedObjectType.Equals(Guid.Empty) && (inheritanceFlags & InheritanceFlags.ContainerInherit) != 0)
32 {
33 _inheritedObjectType = inheritedObjectType;
34 _objectFlags |= ObjectAceFlags.InheritedObjectAceTypePresent;
35 }
36 else
37 {
39 }
40 }
41}
ObjectAuditRule(IdentityReference identity, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, Guid objectType, Guid inheritedObjectType, AuditFlags auditFlags)
override bool Equals([NotNullWhen(true)] object? o)
Definition Guid.cs:706
static readonly Guid Empty
Definition Guid.cs:86