Removed IEntityManager.SpawnEntityNoMapInit. Every entity spawned into an uninitialized map does not have mapinit ran, so this is useless.

This commit is contained in:
Acruid
2021-03-11 22:17:31 -08:00
parent 8d82f48a8f
commit 7b50dcd969
4 changed files with 1 additions and 29 deletions

View File

@@ -212,12 +212,6 @@ namespace Robust.Client.GameObjects
return entity;
}
/// <inheritdoc />
public override IEntity SpawnEntityNoMapInit(string? protoName, EntityCoordinates coordinates)
{
return SpawnEntity(protoName, coordinates);
}
protected override EntityUid GenerateEntityUid()
{
return new(_nextClientEntityUid++);

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
@@ -132,14 +132,6 @@ namespace Robust.Server.GameObjects
return entity;
}
/// <inheritdoc />
public override IEntity SpawnEntityNoMapInit(string? protoName, EntityCoordinates coordinates)
{
var newEnt = CreateEntityUninitialized(protoName, coordinates);
InitializeAndStartEntity((Entity) newEnt);
return newEnt;
}
/// <inheritdoc />
public List<EntityState>? GetEntityStates(GameTick fromTick, IPlayerSession player)
{

View File

@@ -136,9 +136,6 @@ namespace Robust.Shared.GameObjects
/// <inheritdoc />
public abstract IEntity SpawnEntity(string? protoName, MapCoordinates coordinates);
/// <inheritdoc />
public abstract IEntity SpawnEntityNoMapInit(string? protoName, EntityCoordinates coordinates);
/// <summary>
/// Returns an entity by id
/// </summary>

View File

@@ -58,17 +58,6 @@ namespace Robust.Shared.GameObjects
/// <returns></returns>
IEntity SpawnEntity(string? protoName, MapCoordinates coordinates);
/// <summary>
/// Spawns an initialized entity at the default location, using the given prototype.
/// </summary>
/// <remarks>
/// Does not run map init. This only matters on the server.
/// </remarks>
/// <param name="protoName">The prototype to clone. If this is null, the entity won't have a prototype.</param>
/// <param name="coordinates"></param>
/// <returns>Newly created entity.</returns>
IEntity SpawnEntityNoMapInit(string? protoName, EntityCoordinates coordinates);
/// <summary>
/// Returns an entity by id
/// </summary>