Uma script update
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Gallop.Live
|
||||
{
|
||||
public class RandomTable<T>
|
||||
{
|
||||
private const int MAX_COUNT = 16;
|
||||
private const int OFFSET_RANDOM_BUCKET = 1;
|
||||
private bool _bInitialized;
|
||||
private Func<int, int, T> _fnGenerator;
|
||||
private int _bucketCount;
|
||||
private int _stackSize;
|
||||
private T[,] _arrRandomValue;
|
||||
private int _curStackPtr;
|
||||
|
||||
public bool isInitialized { get; }
|
||||
public int bucketCount { get; }
|
||||
public int stackSize { get; }
|
||||
public T Item { get; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user