Update DamageSpecifier.cs (#13044)
* Update DamageSpecifier.cs * Update DamageSpecifier.cs
This commit is contained in:
@@ -2,6 +2,7 @@ using System.Text.Json.Serialization;
|
|||||||
using Content.Shared.Damage.Prototypes;
|
using Content.Shared.Damage.Prototypes;
|
||||||
using Content.Shared.FixedPoint;
|
using Content.Shared.FixedPoint;
|
||||||
using Robust.Shared.Prototypes;
|
using Robust.Shared.Prototypes;
|
||||||
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Dictionary;
|
||||||
using Robust.Shared.Utility;
|
using Robust.Shared.Utility;
|
||||||
|
|
||||||
namespace Content.Shared.Damage
|
namespace Content.Shared.Damage
|
||||||
@@ -16,6 +17,15 @@ namespace Content.Shared.Damage
|
|||||||
[DataDefinition]
|
[DataDefinition]
|
||||||
public sealed class DamageSpecifier : IEquatable<DamageSpecifier>
|
public sealed class DamageSpecifier : IEquatable<DamageSpecifier>
|
||||||
{
|
{
|
||||||
|
// These exist solely so the wiki works. Please do not touch them or use them.
|
||||||
|
[JsonPropertyName("types")]
|
||||||
|
[DataField("types", customTypeSerializer: typeof(PrototypeIdDictionarySerializer<FixedPoint2, DamageTypePrototype>))]
|
||||||
|
private readonly Dictionary<string,FixedPoint2>? _damageTypeDictionary;
|
||||||
|
|
||||||
|
[JsonPropertyName("groups")]
|
||||||
|
[DataField("groups", customTypeSerializer: typeof(PrototypeIdDictionarySerializer<FixedPoint2, DamageGroupPrototype>))]
|
||||||
|
private readonly Dictionary<string, FixedPoint2>? _damageGroupDictionary;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Main DamageSpecifier dictionary. Most DamageSpecifier functions exist to somehow modifying this.
|
/// Main DamageSpecifier dictionary. Most DamageSpecifier functions exist to somehow modifying this.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user