-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
StartingMindRoleComponent, unhardcode roundstart silicon
- Loading branch information
Showing
5 changed files
with
45 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using Robust.Shared.GameStates; | ||
using Robust.Shared.Prototypes; | ||
|
||
namespace Content.Shared.Roles; | ||
|
||
/// <summary> | ||
/// This is most likely not the component you are looking for, almost nothing should be using this. | ||
/// Consider using GhostRoleComponent or AntagSelectionComponent instead. | ||
/// | ||
/// The specified mind role will be added to the mob on spawn. | ||
/// | ||
/// </summary> | ||
[RegisterComponent, NetworkedComponent] | ||
public sealed partial class StartingMindRoleComponent : Component | ||
{ | ||
/// <summary> | ||
/// The ID of the mind role to add | ||
/// </summary> | ||
[DataField(required: true)] | ||
public EntProtoId MindRole; | ||
|
||
/// <summary> | ||
/// Add the mind role silently | ||
/// </summary> | ||
[DataField] | ||
public bool Silent = true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters