Gets rid of all ComponentManager usages. (#4707)
This commit is contained in:
committed by
GitHub
parent
7953e5b962
commit
0be5ff829b
@@ -468,7 +468,7 @@ namespace Content.Server.Atmos.EntitySystems
|
||||
{
|
||||
var direction = ((Vector2)_depressurizeTiles[tileCount - 1].GridIndices - tile.GridIndices).Normalized;
|
||||
|
||||
var gridPhysics = ComponentManager.GetComponent<PhysicsComponent>(mapGrid.GridEntityId);
|
||||
var gridPhysics = EntityManager.GetComponent<PhysicsComponent>(mapGrid.GridEntityId);
|
||||
|
||||
// TODO ATMOS: Come up with better values for these.
|
||||
gridPhysics.ApplyLinearImpulse(direction * totalGasesRemoved * gridPhysics.Mass);
|
||||
@@ -489,7 +489,7 @@ namespace Content.Server.Atmos.EntitySystems
|
||||
|
||||
foreach (var entity in mapGrid.GetAnchoredEntities(tile.GridIndices))
|
||||
{
|
||||
if (!ComponentManager.TryGetComponent(entity, out FirelockComponent firelock))
|
||||
if (!EntityManager.TryGetComponent(entity, out FirelockComponent firelock))
|
||||
continue;
|
||||
|
||||
reconsiderAdjacent |= firelock.EmergencyPressureStop();
|
||||
@@ -497,7 +497,7 @@ namespace Content.Server.Atmos.EntitySystems
|
||||
|
||||
foreach (var entity in mapGrid.GetAnchoredEntities(other.GridIndices))
|
||||
{
|
||||
if (!ComponentManager.TryGetComponent(entity, out FirelockComponent firelock))
|
||||
if (!EntityManager.TryGetComponent(entity, out FirelockComponent firelock))
|
||||
continue;
|
||||
|
||||
reconsiderAdjacent |= firelock.EmergencyPressureStop();
|
||||
|
||||
Reference in New Issue
Block a user