Replace usages of customTypeSerializer PrototypeIdListSerializer with something that doesn't take 20 separate words to type out (#37959)
* Replace usages of customTypeSerializer PrototypeIdListSerializer with something that doesn't take 20 separate words to type out * Missed one * Missed another * Fix data field ids
This commit is contained in:
@@ -2,8 +2,8 @@ using Content.Shared.Lathe;
|
||||
using Content.Shared.Research.Prototypes;
|
||||
using Content.Shared.Research.Systems;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
|
||||
|
||||
namespace Content.Shared.Research.Components;
|
||||
|
||||
@@ -25,15 +25,15 @@ public sealed partial class TechnologyDatabaseComponent : Component
|
||||
/// Which research disciplines are able to be unlocked
|
||||
/// </summary>
|
||||
[AutoNetworkedField]
|
||||
[DataField("supportedDisciplines", customTypeSerializer: typeof(PrototypeIdListSerializer<TechDisciplinePrototype>))]
|
||||
public List<string> SupportedDisciplines = new();
|
||||
[DataField]
|
||||
public List<ProtoId<TechDisciplinePrototype>> SupportedDisciplines = new();
|
||||
|
||||
/// <summary>
|
||||
/// The ids of all the technologies which have been unlocked.
|
||||
/// </summary>
|
||||
[AutoNetworkedField]
|
||||
[DataField("unlockedTechnologies", customTypeSerializer: typeof(PrototypeIdListSerializer<TechnologyPrototype>))]
|
||||
public List<string> UnlockedTechnologies = new();
|
||||
[DataField]
|
||||
public List<ProtoId<TechnologyPrototype>> UnlockedTechnologies = new();
|
||||
|
||||
/// <summary>
|
||||
/// The ids of all the lathe recipes which have been unlocked.
|
||||
@@ -41,8 +41,8 @@ public sealed partial class TechnologyDatabaseComponent : Component
|
||||
/// </summary>
|
||||
/// todo: if you unlock all the recipes in a tech, it doesn't count as unlocking the tech. sadge
|
||||
[AutoNetworkedField]
|
||||
[DataField("unlockedRecipes", customTypeSerializer: typeof(PrototypeIdListSerializer<LatheRecipePrototype>))]
|
||||
public List<string> UnlockedRecipes = new();
|
||||
[DataField]
|
||||
public List<ProtoId<LatheRecipePrototype>> UnlockedRecipes = new();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user