Interface ITaskManager
Interface for Socially Distant's task manager, which manages all in-game processes running on all in-game devices.
Namespace: SociallyDistant.Core.OS.Tasks
Assembly: SociallyDistant.Framework.dll
Syntax
public interface ITaskManager
Remarks
This API is old.
Properties
WorldFileSystem
Gets a filesystem implementation that can be used to access the files and directories of every single device in the game.
Declaration
IVirtualFileSystem WorldFileSystem { get; }
Property Value
Type | Description |
---|---|
IVirtualFileSystem |
Methods
GetChildProcesses(ISystemProcess)
Gets all child processes forked off a given process.
Declaration
IEnumerable<ISystemProcess> GetChildProcesses(ISystemProcess parent)
Parameters
Type | Name | Description |
---|---|---|
ISystemProcess | parent | The parent process to check. |
Returns
Type | Description |
---|---|
IEnumerable<ISystemProcess> | An iteration of all direct child processes. |
GetNarrativeComputer(string)
Get, or create, a computer with a given narrative identifier.
Declaration
IComputer GetNarrativeComputer(string narrativeId)
Parameters
Type | Name | Description |
---|---|---|
string | narrativeId | The narrative identifier of the computer. |
Returns
Type | Description |
---|---|
IComputer | A computer with the given narrative ID. |
GetTasksForUser(IUser)
Gets all processes running under a given user.
Declaration
IEnumerable<ISystemProcess> GetTasksForUser(IUser user)
Parameters
Type | Name | Description |
---|---|---|
IUser | user | The user to check. |
Returns
Type | Description |
---|---|
IEnumerable<ISystemProcess> | An iteration of all processes owned by the user. |
GetTasksOnComputer(IComputer)
Get all processes running on a device.
Declaration
IEnumerable<ISystemProcess> GetTasksOnComputer(IComputer computer)
Parameters
Type | Name | Description |
---|---|---|
IComputer | computer | The computer whose process list should be pulled. |
Returns
Type | Description |
---|---|
IEnumerable<ISystemProcess> | An iteration of every process running on the device. |