Localize gases (#11376)

This commit is contained in:
Morb
2022-09-17 20:34:53 +03:00
committed by GitHub
parent c8a0570bdf
commit 9e8d0a51ad
3 changed files with 25 additions and 9 deletions

View File

@@ -7,7 +7,14 @@ namespace Content.Shared.Atmos.Prototypes
[Prototype("gas")]
public sealed class GasPrototype : IPrototype
{
[DataField("name")] public string Name { get; } = string.Empty;
private string _name = string.Empty;
[DataField("name")]
public string Name
{
get => _name;
private set => _name = Loc.GetString(value);
}
// TODO: Control gas amount necessary for overlay to appear
// TODO: Add interfaces for gas behaviours e.g. breathing, burning