Skip to content

Commit

Permalink
Rename shared AudioRandomizer (LostArtefacts#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
lahm86 authored May 25, 2024
1 parent 9710b18 commit 789f0b1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace TRRandomizerCore.Randomizers;

public abstract class AudioRandomizer
public abstract class AudioAllocator
{
private readonly IReadOnlyDictionary<TRAudioCategory, List<TRAudioTrack>> _tracks;
private readonly Dictionary<Vector2, ushort> _trackMap;
Expand All @@ -18,7 +18,7 @@ public abstract class AudioRandomizer
public RandomizerSettings Settings { get; set; }
public List<TRSFXGeneralCategory> Categories { get; private set; }

public AudioRandomizer(IReadOnlyDictionary<TRAudioCategory, List<TRAudioTrack>> tracks)
public AudioAllocator(IReadOnlyDictionary<TRAudioCategory, List<TRAudioTrack>> tracks)
{
_tracks = tracks;
_trackMap = new();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace TRRandomizerCore.Randomizers;

public class TR1AudioAllocator : AudioRandomizer
public class TR1AudioAllocator : AudioAllocator
{
private const int _defaultSecretTrack = 13;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace TRRandomizerCore.Randomizers;

public class TR2AudioAllocator : AudioRandomizer
public class TR2AudioAllocator : AudioAllocator
{
private readonly int _numSamples;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace TRRandomizerCore.Randomizers;

public class TR3AudioAllocator : AudioRandomizer
public class TR3AudioAllocator : AudioAllocator
{
private const int _defaultSecretTrack = 122;
private const int _numSamples = 414;
Expand Down

0 comments on commit 789f0b1

Please sign in to comment.