More error fixes.
This commit is contained in:
@@ -7,6 +7,6 @@ namespace Content.Shared.Construction.Conditions
|
||||
public interface IConstructionCondition
|
||||
{
|
||||
ConstructionGuideEntry? GenerateGuideEntry();
|
||||
bool Condition(IEntity user, EntityCoordinates location, Direction direction);
|
||||
bool Condition(EntityUid user, EntityCoordinates location, Direction direction);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace Content.Shared.Construction.Conditions
|
||||
[DataDefinition]
|
||||
public class NoWindowsInTile : IConstructionCondition
|
||||
{
|
||||
public bool Condition(IEntity user, EntityCoordinates location, Direction direction)
|
||||
public bool Condition(EntityUid user, EntityCoordinates location, Direction direction)
|
||||
{
|
||||
foreach (var entity in location.GetEntitiesInTile(LookupFlags.Approximate | LookupFlags.IncludeAnchored))
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Content.Shared.Construction.Conditions
|
||||
[DataField("filterMobs")] private bool _filterMobs = false;
|
||||
[DataField("failIfSpace")] private bool _failIfSpace = true;
|
||||
|
||||
public bool Condition(IEntity user, EntityCoordinates location, Direction direction)
|
||||
public bool Condition(EntityUid user, EntityCoordinates location, Direction direction)
|
||||
{
|
||||
var tileRef = location.GetTileRef();
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace Content.Shared.Construction.Conditions
|
||||
[DataField("guideIcon")]
|
||||
public SpriteSpecifier? GuideIcon = null;
|
||||
|
||||
public bool Condition(IEntity user, EntityCoordinates location, Direction direction)
|
||||
public bool Condition(EntityUid user, EntityCoordinates location, Direction direction)
|
||||
{
|
||||
if (TargetTiles == null) return true;
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace Content.Shared.Construction.Conditions
|
||||
[DataDefinition]
|
||||
public class WallmountCondition : IConstructionCondition
|
||||
{
|
||||
public bool Condition(IEntity user, EntityCoordinates location, Direction direction)
|
||||
public bool Condition(EntityUid user, EntityCoordinates location, Direction direction)
|
||||
{
|
||||
var entManager = IoCManager.Resolve<IEntityManager>();
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace Content.Shared.Construction.Steps
|
||||
return entityManager.TryGetComponent(uid, out SharedStackComponent? stack) && stack.StackTypeId.Equals(MaterialPrototypeId) && stack.Count >= Amount;
|
||||
}
|
||||
|
||||
public bool EntityValid(IEntity entity, [NotNullWhen(true)] out SharedStackComponent? stack)
|
||||
public bool EntityValid(EntityUid entity, [NotNullWhen(true)] out SharedStackComponent? stack)
|
||||
{
|
||||
if (IoCManager.Resolve<IEntityManager>().TryGetComponent(entity, out SharedStackComponent? otherStack) && otherStack.StackTypeId.Equals(MaterialPrototypeId) && otherStack.Count >= Amount)
|
||||
stack = otherStack;
|
||||
|
||||
Reference in New Issue
Block a user