Class SharedRoleSystem
Inheritance
System.Object
SharedRoleSystem
Assembly: Content.Shared.dll
Syntax
public abstract class SharedRoleSystem : EntitySystem
Methods
|
Improve this Doc
View Source
Initialize()
Declaration
public override void Initialize()
|
Improve this Doc
View Source
IsAntagonistRole<T>()
Declaration
public bool IsAntagonistRole<T>()
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
|
Improve this Doc
View Source
MindAddRole<T>(EntityUid, T, MindComponent, Boolean)
Gives this mind a new role.
Declaration
public void MindAddRole<T>(EntityUid mindId, T component, MindComponent mind = null, bool silent = false)
where T : Component, new()
Parameters
Type |
Name |
Description |
EntityUid |
mindId |
The mind to add the role to.
|
T |
component |
The role instance to add.
|
MindComponent |
mind |
|
System.Boolean |
silent |
Whether or not the role should be added silently
|
Type Parameters
Name |
Description |
T |
The role type to add.
|
|
Improve this Doc
View Source
MindGetAllRoles(EntityUid)
Declaration
public List<RoleInfo> MindGetAllRoles(EntityUid mindId)
Parameters
Type |
Name |
Description |
EntityUid |
mindId |
|
Returns
Type |
Description |
List<Content.Shared.Roles.RoleInfo> |
|
|
Improve this Doc
View Source
MindHasRole<T>(EntityUid)
Declaration
public bool MindHasRole<T>(EntityUid mindId)
where T : Component
Parameters
Type |
Name |
Description |
EntityUid |
mindId |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
|
Improve this Doc
View Source
MindIsAntagonist(Nullable<EntityUid>)
Declaration
public bool MindIsAntagonist(EntityUid? mindId)
Parameters
Type |
Name |
Description |
System.Nullable<EntityUid> |
mindId |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
MindRemoveRole<T>(EntityUid)
Removes a role from this mind.
Declaration
public void MindRemoveRole<T>(EntityUid mindId)
where T : Component
Parameters
Type |
Name |
Description |
EntityUid |
mindId |
The mind to remove the role from.
|
Type Parameters
Name |
Description |
T |
The type of the role to remove.
|
|
Improve this Doc
View Source
MindTryRemoveRole<T>(EntityUid)
Declaration
public bool MindTryRemoveRole<T>(EntityUid mindId)
where T : Component
Parameters
Type |
Name |
Description |
EntityUid |
mindId |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
|
Improve this Doc
View Source
SubscribeAntagEvents<T>()
Declaration
protected void SubscribeAntagEvents<T>()
where T : AntagonistRoleComponent
Type Parameters