v1.4.4.1 (Blood in the Water Update)

This commit is contained in:
Regalis11
2024-04-24 18:09:05 +03:00
parent 89b91d1c3e
commit ff1b8951a7
397 changed files with 15250 additions and 6479 deletions
@@ -9,7 +9,7 @@ namespace Barotrauma
public event Action Finished;
protected bool isFinished;
public int RandomSeed;
public readonly int RandomSeed;
protected readonly EventPrefab prefab;
@@ -17,6 +17,8 @@ namespace Barotrauma
public EventSet ParentSet { get; private set; }
public bool Initialized { get; private set; }
public Func<Level.InterestingPosition, bool> SpawnPosFilter;
public bool IsFinished
@@ -37,8 +39,9 @@ namespace Barotrauma
}
}
public Event(EventPrefab prefab)
public Event(EventPrefab prefab, int seed)
{
RandomSeed = seed;
this.prefab = prefab ?? throw new ArgumentNullException(nameof(prefab));
}
@@ -47,9 +50,15 @@ namespace Barotrauma
yield break;
}
public virtual void Init(EventSet parentSet = null)
public void Init(EventSet parentSet = null)
{
Initialized = true;
ParentSet = parentSet;
InitEventSpecific(parentSet);
}
protected virtual void InitEventSpecific(EventSet parentSet = null)
{
}
public virtual string GetDebugInfo()