address reviews

This commit is contained in:
Víctor Aguilera Puerto
2020-09-02 15:22:26 +02:00
parent 2294c32235
commit 3922759a81
2 changed files with 8 additions and 4 deletions

View File

@@ -26,12 +26,16 @@ namespace Content.Shared.Interfaces.GameObjects.Components
ClickLocation = clickLocation;
WideAttack = wideAttack;
Target = target;
IEntity? targetEntity = null;
IoCManager.Resolve<IEntityManager>()?.TryGetEntity(Target, out targetEntity);
TargetEntity = targetEntity;
}
public IEntity User { get; }
public GridCoordinates ClickLocation { get; }
public bool WideAttack { get; }
public EntityUid Target { get; }
public IEntity? TargetEntity => Target.IsValid() ? IoCManager.Resolve<IEntityManager>()?.GetEntity(Target) ?? null : null;
public IEntity? TargetEntity { get; }
}
}