explicit interface go brrrr
This commit is contained in:
@@ -6,6 +6,7 @@ using Content.Server.Objectives.Interfaces;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Server.GameObjects.Components.Container;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Interfaces.Serialization;
|
||||
using Robust.Shared.IoC;
|
||||
using Robust.Shared.Localization;
|
||||
using Robust.Shared.Log;
|
||||
@@ -32,7 +33,7 @@ namespace Content.Server.Objectives.Conditions
|
||||
};
|
||||
}
|
||||
|
||||
public void ExposeData(ObjectSerializer serializer)
|
||||
void IExposeData.ExposeData(ObjectSerializer serializer)
|
||||
{
|
||||
serializer.DataField(ref _prototypeId, "prototype", "");
|
||||
serializer.DataField(ref _amount, "amount", 1);
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using Content.Server.Mobs;
|
||||
using Content.Server.Objectives.Interfaces;
|
||||
using Robust.Shared.Interfaces.Serialization;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Server.Objectives.Requirements
|
||||
@@ -8,7 +9,8 @@ namespace Content.Server.Objectives.Requirements
|
||||
public class IncompatibleConditionsRequirement : IObjectiveRequirement
|
||||
{
|
||||
private List<string> _incompatibleConditions = new();
|
||||
public void ExposeData(ObjectSerializer serializer)
|
||||
|
||||
void IExposeData.ExposeData(ObjectSerializer serializer)
|
||||
{
|
||||
serializer.DataField(this, x=>x._incompatibleConditions, "conditions", new List<string>());
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using Content.Server.Mobs;
|
||||
using Content.Server.Objectives.Interfaces;
|
||||
using Robust.Shared.Interfaces.Serialization;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Server.Objectives.Requirements
|
||||
@@ -8,7 +9,8 @@ namespace Content.Server.Objectives.Requirements
|
||||
public class IncompatibleObjectivesRequirement : IObjectiveRequirement
|
||||
{
|
||||
private List<string> _incompatibleObjectives = new();
|
||||
public void ExposeData(ObjectSerializer serializer)
|
||||
|
||||
void IExposeData.ExposeData(ObjectSerializer serializer)
|
||||
{
|
||||
serializer.DataField(this, x=>x._incompatibleObjectives, "objectives", new List<string>());
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using Content.Server.Mobs.Roles.Traitor;
|
||||
using Content.Server.Objectives.Interfaces;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Shared.Interfaces.Serialization;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Server.Objectives.Requirements
|
||||
@@ -9,7 +10,7 @@ namespace Content.Server.Objectives.Requirements
|
||||
[UsedImplicitly]
|
||||
public class TraitorRequirement : IObjectiveRequirement
|
||||
{
|
||||
public void ExposeData(ObjectSerializer serializer){}
|
||||
void IExposeData.ExposeData(ObjectSerializer serializer){}
|
||||
|
||||
public bool CanBeAssigned(Mind mind)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user