Scalien.ConfigStateHelpers.GetTableShards C# (CSharp) Method

GetTableShards() public static method

public static GetTableShards ( ConfigState table, List allShards ) : List
table ConfigState
allShards List
return List
        public static List<ConfigState.Shard> GetTableShards(ConfigState.Table table, List<ConfigState.Shard> allShards)
        {
            var shards = new List<ConfigState.Shard>();

            foreach (var shard in allShards)
            {
                if (shard.tableID == table.tableID)
                    shards.Add(shard);
            }

            return shards;
        }