перенос

This commit is contained in:
NR
2025-03-21 02:20:37 +05:00
parent 9115a72d46
commit 4e66cc69fa
9 changed files with 79 additions and 102 deletions

View File

@@ -53,6 +53,14 @@ namespace Content.Shared.Ghost
{
component.CanReturnToBody = value;
}
public virtual void SetVisible(Entity<GhostComponent?> ghost, bool visible)
{
if (!Resolve(ghost.Owner, ref ghost.Comp))
return;
ghost.Comp.Visible = visible;
Dirty(ghost);
}
}
/// <summary>