Turns GameTicker into an EntitySystem. (#4197)
* GameTicker turned into an EntitySystem * Turns ClientGameTicker into an EntitySystem, turn NetMessages into events * Change event names to be more consistent with the rest. * YAML linter uses the dummy gameticker CVar override. * Fix game ticker initialization order * Dummy ticker won't spawn players. * Fix character creation test
This commit is contained in:
committed by
GitHub
parent
15fb554c28
commit
d3a611164b
@@ -77,7 +77,7 @@ namespace Content.Server.Mind.Components
|
||||
base.Shutdown();
|
||||
|
||||
// Let's not create ghosts if not in the middle of the round.
|
||||
if (IoCManager.Resolve<IGameTicker>().RunLevel != GameRunLevel.InRound)
|
||||
if (EntitySystem.Get<GameTicker>().RunLevel != GameRunLevel.InRound)
|
||||
return;
|
||||
|
||||
if (HasMind)
|
||||
@@ -104,7 +104,7 @@ namespace Content.Server.Mind.Components
|
||||
var gridId = spawnPosition.GetGridId(Owner.EntityManager);
|
||||
if (gridId == GridId.Invalid || !mapMan.GridExists(gridId))
|
||||
{
|
||||
spawnPosition = IoCManager.Resolve<IGameTicker>().GetObserverSpawnPoint();
|
||||
spawnPosition = EntitySystem.Get<GameTicker>().GetObserverSpawnPoint();
|
||||
}
|
||||
|
||||
var ghost = Owner.EntityManager.SpawnEntity("MobObserver", spawnPosition);
|
||||
|
||||
Reference in New Issue
Block a user