Kill ComponentExt (#20907)

This commit is contained in:
Kara
2023-10-11 02:19:46 -07:00
committed by GitHub
parent dbb7c7065a
commit 7dd20f7af1
6 changed files with 20 additions and 40 deletions

View File

@@ -81,7 +81,7 @@ namespace Content.Server.Tabletop
CloseSessionFor(player, gamer.Tabletop, false);
// Set the entity as an absolute GAMER.
attachedEntity.EnsureComponent<TabletopGamerComponent>().Tabletop = uid;
EnsureComp<TabletopGamerComponent>(attachedEntity).Tabletop = uid;
// Create a camera for the gamer to use
var camera = CreateCamera(tabletop, player);
@@ -139,7 +139,7 @@ namespace Content.Server.Tabletop
var camera = EntityManager.SpawnEntity(null, session.Position.Offset(offset));
// Add an eye component and disable FOV
var eyeComponent = camera.EnsureComponent<EyeComponent>();
var eyeComponent = EnsureComp<EyeComponent>(camera);
_eye.SetDrawFov(camera, false, eyeComponent);
_eye.SetZoom(camera, tabletop.CameraZoom, eyeComponent);