Files
OpenRA/OpenRa.Game/GameRules/VoiceInfo.cs
Chris Forbes 1faa2ae0b3 it works
2009-12-05 15:34:53 +13:00

32 lines
772 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IjwFramework.Types;
using IjwFramework.Collections;
namespace OpenRa.Game.GameRules
{
class VoiceInfo
{
public readonly string[] SovietVariants = { ".aud" };
public readonly string[] AlliedVariants = { ".aud" };
public readonly string[] Select = {};
public readonly string[] Move = {};
public readonly string[] Attack = null;
public readonly Lazy<Dictionary<string, VoicePool>> Pools;
public VoiceInfo()
{
Pools = Lazy.New(() =>
new Dictionary<string, VoicePool>
{
{ "Select", new VoicePool(Select) },
{ "Move", new VoicePool(Move) },
{ "Attack", new VoicePool( Attack ?? Move ) },
});
}
}
}