Unstable 1.2.4.0

This commit is contained in:
Markus Isberg
2023-11-30 13:53:00 +02:00
parent 8a2e2ea0ae
commit fb5ea537bf
210 changed files with 4201 additions and 1283 deletions
@@ -412,6 +412,7 @@ namespace Barotrauma
preloadedSprites.ForEach(s => s.Remove());
preloadedSprites.Clear();
timeStamps.Clear();
pathFinder = null;
}
@@ -905,7 +906,18 @@ namespace Barotrauma
activeEvents.Add(QueuedEvents.Dequeue());
}
}
public void EntitySpawned(Entity entity)
{
foreach (var ev in activeEvents)
{
if (ev is ScriptedEvent scriptedEvent)
{
scriptedEvent.EntitySpawned(entity);
}
}
}
private void CalculateCurrentIntensity(float deltaTime)
{
intensityUpdateTimer -= deltaTime;