v1.4.4.1 (Blood in the Water Update)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user