Inline AddComponent
This commit is contained in:
@@ -92,7 +92,7 @@ namespace Content.IntegrationTests.Tests.Networking
|
||||
var map = sMapManager.CreateMap();
|
||||
var player = sPlayerManager.ServerSessions.Single();
|
||||
serverEnt = sEntityManager.SpawnEntity(null, new MapCoordinates((0, 0), map));
|
||||
serverComponent = serverEnt.AddComponent<PredictionTestComponent>();
|
||||
serverComponent = IoCManager.Resolve<IEntityManager>().AddComponent<PredictionTestComponent>(serverEnt);
|
||||
|
||||
// Make client "join game" so they receive game state updates.
|
||||
player.JoinGame();
|
||||
|
||||
Reference in New Issue
Block a user