Class Vulnerability
A record representing a vulnerability that a hackable can be vulnerable to.
Implements
Inherited Members
Namespace: SociallyDistant.Core.Hacking
Assembly: SociallyDistant.Framework.dll
Syntax
public sealed record Vulnerability : IEquatable<Vulnerability>
Constructors
Vulnerability(string, string, string)
A record representing a vulnerability that a hackable can be vulnerable to.
Declaration
public Vulnerability(string Id, string Name, string Description)
Parameters
Type | Name | Description |
---|---|---|
string | Id | The internal ID of the vulnerability, stored in save files. Once it has been set, it cannot be changed. |
string | Name | The name of the vulnerability, as shown in-game. |
string | Description | A description of the vulnerability, as shown in-game. |
Properties
Description
A description of the vulnerability, as shown in-game.
Declaration
public string Description { get; init; }
Property Value
Type | Description |
---|---|
string |
Id
The internal ID of the vulnerability, stored in save files. Once it has been set, it cannot be changed.
Declaration
public string Id { get; init; }
Property Value
Type | Description |
---|---|
string |
Name
The name of the vulnerability, as shown in-game.
Declaration
public string Name { get; init; }
Property Value
Type | Description |
---|---|
string |