Port all construction conditions to the new examine.

This commit is contained in:
Vera Aguilera Puerto
2021-10-01 15:27:42 +02:00
parent f21c921c56
commit 3b14c21396
15 changed files with 85 additions and 40 deletions

View File

@@ -1,6 +1,7 @@
using System;
using System.Threading.Tasks;
using Content.Shared.Construction;
using Content.Shared.Examine;
using JetBrains.Annotations;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
@@ -24,5 +25,17 @@ namespace Content.Server.Construction.Conditions
return true;
}
public bool DoExamine(ExaminedEvent args)
{
var ret = false;
foreach (var condition in Conditions)
{
ret |= condition.DoExamine(args);
}
return ret;
}
}
}