Class SharedJobSystem
Handles the job data on mind entities.
Inheritance
System.Object
SharedJobSystem
Assembly: Content.Shared.dll
Syntax
public abstract class SharedJobSystem : EntitySystem
Methods
|
Improve this Doc
View Source
CanBeAntag(ICommonSession)
Declaration
public bool CanBeAntag(ICommonSession player)
Parameters
Type |
Name |
Description |
Robust.Shared.Players.ICommonSession |
player |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
GetJobPrototype(String)
Declaration
public string GetJobPrototype(string trackerProto)
Parameters
Type |
Name |
Description |
System.String |
trackerProto |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Initialize()
Declaration
public override void Initialize()
|
Improve this Doc
View Source
MindHasJobWithId(Nullable<EntityUid>, String)
Declaration
public bool MindHasJobWithId(EntityUid? mindId, string prototypeId)
Parameters
Type |
Name |
Description |
System.Nullable<EntityUid> |
mindId |
|
System.String |
prototypeId |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
MindTryGetJob(Nullable<EntityUid>, out JobComponent, out JobPrototype)
Declaration
public bool MindTryGetJob(EntityUid? mindId, out JobComponent comp, out JobPrototype prototype)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
MindTryGetJobName(Nullable<EntityUid>)
Tries to get the job name for this mind.
Returns unknown if not found.
Declaration
public string MindTryGetJobName(EntityUid? mindId)
Parameters
Type |
Name |
Description |
System.Nullable<EntityUid> |
mindId |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
MindTryGetJobName(Nullable<EntityUid>, out String)
Tries to get the job name for this mind.
Returns unknown if not found.
Declaration
public bool MindTryGetJobName(EntityUid? mindId, out string name)
Parameters
Type |
Name |
Description |
System.Nullable<EntityUid> |
mindId |
|
System.String |
name |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Shutdown()
Declaration
public override void Shutdown()
|
Improve this Doc
View Source
TryGetDepartment(String, out DepartmentPrototype)
Tries to get the first corresponding department for this job prototype.
Declaration
public bool TryGetDepartment(string jobProto, out DepartmentPrototype departmentPrototype)
Parameters
Returns
Type |
Description |
System.Boolean |
|