コード例 #1
0
 /// <inheritdoc />
 public override bool HijackDeletion(EntityUid entity)
 {
     if (IoCManager.Resolve <IEntityManager>().TryGetComponent(entity, out ConstructionGhostComponent? ghost))
     {
         _constructionSystem.ClearGhost(ghost.GhostId);
     }
     return(true);
 }
コード例 #2
0
 public override bool HijackDeletion(IEntity entity)
 {
     if (entity.TryGetComponent(out ConstructionGhostComponent? ghost))
     {
         _constructionSystem.ClearGhost(ghost.GhostID);
     }
     return(true);
 }