Replace GridEntityId with Owner (#12743)
This commit is contained in:
@@ -35,13 +35,13 @@ namespace Content.IntegrationTests.Tests
|
||||
|
||||
{
|
||||
var mapGrid = mapManager.CreateGrid(mapId);
|
||||
var mapGridEnt = mapGrid.GridEntityId;
|
||||
var mapGridEnt = mapGrid.Owner;
|
||||
sEntities.GetComponent<TransformComponent>(mapGridEnt).WorldPosition = new Vector2(10, 10);
|
||||
mapGrid.SetTile(new Vector2i(0,0), new Tile(1, (TileRenderFlag)1, 255));
|
||||
}
|
||||
{
|
||||
var mapGrid = mapManager.CreateGrid(mapId);
|
||||
var mapGridEnt = mapGrid.GridEntityId;
|
||||
var mapGridEnt = mapGrid.Owner;
|
||||
sEntities.GetComponent<TransformComponent>(mapGridEnt).WorldPosition = new Vector2(-8, -8);
|
||||
mapGrid.SetTile(new Vector2i(0, 0), new Tile(2, (TileRenderFlag)1, 254));
|
||||
}
|
||||
@@ -61,7 +61,7 @@ namespace Content.IntegrationTests.Tests
|
||||
{
|
||||
{
|
||||
if (!mapManager.TryFindGridAt(new MapId(10), new Vector2(10, 10), out var mapGrid) ||
|
||||
!sEntities.TryGetComponent<TransformComponent>(mapGrid.GridEntityId, out var gridXform))
|
||||
!sEntities.TryGetComponent<TransformComponent>(mapGrid.Owner, out var gridXform))
|
||||
{
|
||||
Assert.Fail();
|
||||
return;
|
||||
@@ -73,7 +73,7 @@ namespace Content.IntegrationTests.Tests
|
||||
}
|
||||
{
|
||||
if (!mapManager.TryFindGridAt(new MapId(10), new Vector2(-8, -8), out var mapGrid) ||
|
||||
!sEntities.TryGetComponent<TransformComponent>(mapGrid.GridEntityId, out var gridXform))
|
||||
!sEntities.TryGetComponent<TransformComponent>(mapGrid.Owner, out var gridXform))
|
||||
{
|
||||
Assert.Fail();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user