Inline UID

This commit is contained in:
Vera Aguilera Puerto
2021-12-03 15:53:09 +01:00
parent 2654775bf0
commit 5cd42c9ad6
803 changed files with 3613 additions and 3577 deletions

View File

@@ -438,7 +438,7 @@ namespace Content.Client.Preferences.UI
#region Preview
_previewDummy = entityManager.SpawnEntity("MobHumanDummy", MapCoordinates.Nullspace);
var sprite = IoCManager.Resolve<IEntityManager>().GetComponent<SpriteComponent>(_previewDummy.Uid);
var sprite = IoCManager.Resolve<IEntityManager>().GetComponent<SpriteComponent>(_previewDummy);
// Front
_previewSprite = new SpriteView
@@ -482,7 +482,7 @@ namespace Content.Client.Preferences.UI
if (!disposing)
return;
IoCManager.Resolve<IEntityManager>().DeleteEntity(_previewDummy.Uid);
IoCManager.Resolve<IEntityManager>().DeleteEntity((EntityUid) _previewDummy);
_preferencesManager.OnServerDataLoaded -= LoadServerData;
}
@@ -660,7 +660,7 @@ namespace Content.Client.Preferences.UI
if (Profile is null)
return;
EntitySystem.Get<SharedHumanoidAppearanceSystem>().UpdateFromProfile(_previewDummy.Uid, Profile);
EntitySystem.Get<SharedHumanoidAppearanceSystem>().UpdateFromProfile(_previewDummy, Profile);
LobbyCharacterPreviewPanel.GiveDummyJobClothes(_previewDummy, Profile);
}