Class SystemService
Base class for a system service that runs on a device.
Inherited Members
Namespace: SociallyDistant.Core.OS.Devices
Assembly: SociallyDistant.Framework.dll
Syntax
public abstract class SystemService
Constructors
SystemService(ISystemProcess)
Creates a new instance of the SystemService class.
Declaration
protected SystemService(ISystemProcess process)
Parameters
Type | Name | Description |
---|---|---|
ISystemProcess | process | An instance of ISystemProcess representing the in-game process this service belongs to. |
Properties
Computer
Gets an instance of IComputer representing the device on which this service is running.
Declaration
public IComputer Computer { get; }
Property Value
Type | Description |
---|---|
IComputer |
User
Gets an instance of IUser representing the user running this service's process.
Declaration
public IUser User { get; }
Property Value
Type | Description |
---|---|
IUser |
Methods
Fork(IUser?)
Declaration
public ISystemProcess Fork(IUser? forkUser = null)
Parameters
Type | Name | Description |
---|---|---|
IUser | forkUser |
Returns
Type | Description |
---|---|
ISystemProcess |
Start()
Called by the game when the service is enabled.
Declaration
public abstract void Start()
Stop()
Called by the game when the service is disabled.
Declaration
public abstract void Stop()
Update()
Called by the game every frame while the service is enabled.
Declaration
public virtual void Update()