Some more fixes

This commit is contained in:
Vera Aguilera Puerto
2021-12-04 14:14:22 +01:00
parent 2ff16a580b
commit 2bfec7ec62
19 changed files with 46 additions and 56 deletions

View File

@@ -10,7 +10,7 @@ namespace Content.Shared.Spawning
{
public static class EntitySystemExtensions
{
public static IEntity? SpawnIfUnobstructed(
public static EntityUid? SpawnIfUnobstructed(
this IEntityManager entityManager,
string? prototypeName,
EntityCoordinates coordinates,
@@ -24,7 +24,7 @@ namespace Content.Shared.Spawning
return entityManager.SpawnIfUnobstructed(prototypeName, mapCoordinates, collisionLayer, box, physicsManager);
}
public static IEntity? SpawnIfUnobstructed(
public static EntityUid? SpawnIfUnobstructed(
this IEntityManager entityManager,
string? prototypeName,
MapCoordinates coordinates,
@@ -59,7 +59,7 @@ namespace Content.Shared.Spawning
string? prototypeName,
EntityCoordinates coordinates,
CollisionGroup collisionLayer,
[NotNullWhen(true)] out IEntity? entity,
[NotNullWhen(true)] out EntityUid? entity,
Box2? box = null,
SharedPhysicsSystem? physicsManager = null)
{
@@ -73,7 +73,7 @@ namespace Content.Shared.Spawning
string? prototypeName,
MapCoordinates coordinates,
CollisionGroup collisionLayer,
[NotNullWhen(true)] out IEntity? entity,
[NotNullWhen(true)] out EntityUid? entity,
in Box2? box = null,
SharedPhysicsSystem? physicsManager = null)
{