Infer NumberSelector type in EntityTables (#36568)
* Infer number selector types from context * forgor
This commit is contained in:
@@ -8,6 +8,11 @@ public sealed partial class RangeNumberSelector : NumberSelector
|
||||
[DataField]
|
||||
public Vector2i Range = new(1, 1);
|
||||
|
||||
public RangeNumberSelector(Vector2i range)
|
||||
{
|
||||
Range = range;
|
||||
}
|
||||
|
||||
public override int Get(System.Random rand)
|
||||
{
|
||||
// rand.Next() is inclusive on the first number and exclusive on the second number,
|
||||
|
||||
Reference in New Issue
Block a user