-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Автоматические доступы, что выдаются в зависимости от кода станции #1004
Changes from 1 commit
21692cd
df217e1
828341c
76a93ba
1caab60
1891219
b6ca0d4
469a3da
d59814d
652b2a8
2f02f93
40747a1
f7b9741
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using Robust.Shared.Prototypes; | ||
using Content.Shared.Access; | ||
|
||
namespace Content.Shared._Sunrise.AlertAccess | ||
{ | ||
/// <summary> | ||
/// Defines a single access level that can be stored on ID cards and checked for. | ||
/// </summary> | ||
[Prototype("alertAccessesPrototype")] | ||
public sealed partial class AlertAccessesPrototype : IPrototype | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Зачем делать отдельный прототип. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. удалил |
||
{ | ||
[ViewVariables] | ||
[IdDataField] | ||
public string ID { get; private set; } = default!; | ||
|
||
[DataField("access")] | ||
public List<ProtoId<AccessLevelPrototype>> Access = new(); | ||
|
||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
- type: alertAccesses | ||
id: SecurityRedAlertAccesses | ||
access: | ||
- Engineer | ||
- Command | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Почему так мало доступов расширяется? РНД? Медбей? Карго которое уже заказало 20 ящиков пушек? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. это для теста пока, потом дополню |
||
- Maintance |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Что это за пиздец, зачем сколько переменных здесь, создай просто Dict<уровень, доступы> и прописывай его через прототипы.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
поправлю
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ready