Access refactor
Access is now done through a list of access lists, instead of the necessary/sufficient system that was extremely confusing. Added a "deny" list so you can screw over sec. Cleaned the API up so it all uses sets and such. PDA now relays access read-only to fix edge cases.
This commit is contained in:
@@ -647,8 +647,8 @@ namespace Content.Server.GameTicking
|
||||
card.JobTitle = jobPrototype.Name;
|
||||
|
||||
var access = card.Owner.GetComponent<AccessComponent>();
|
||||
var accessTags = access.GetTags();
|
||||
accessTags.AddRange(jobPrototype.Access);
|
||||
var accessTags = access.Tags;
|
||||
accessTags.UnionWith(jobPrototype.Access);
|
||||
access.SetTags(accessTags);
|
||||
pdaComponent.SetPDAOwner(mob);
|
||||
var mindComponent = mob.GetComponent<MindComponent>();
|
||||
|
||||
Reference in New Issue
Block a user