Unstable 0.16.2.0
This commit is contained in:
@@ -3,6 +3,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using Barotrauma.Extensions;
|
||||
|
||||
namespace Barotrauma
|
||||
{
|
||||
@@ -317,6 +318,11 @@ namespace Barotrauma
|
||||
return null;
|
||||
}
|
||||
|
||||
public static MapEntityPrefab GetRandom(Predicate<MapEntityPrefab> predicate, Rand.RandSync sync)
|
||||
{
|
||||
return List.GetRandom(p => predicate(p), sync);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Find a matching map entity prefab
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user