voicepool to avoid annoying me with the same sound over and over... and units now have a voice assigned.

This commit is contained in:
Chris Forbes
2009-10-24 16:07:23 +13:00
parent aa784d446c
commit ea3526a238
5 changed files with 52 additions and 3 deletions

View File

@@ -5,7 +5,9 @@ using OpenRa.TechTree;
using System.Drawing;
using System.Linq;
using IrrKlang;
using IjwFramework.Collections;
using IjwFramework.Collections;
using System;
using IjwFramework.Types;
namespace OpenRa.Game
{
@@ -170,6 +172,14 @@ namespace OpenRa.Game
return int.MaxValue;
return BuildingInfluence.GetDistanceToBuilding(b);
}
}
public static Random SharedRandom = new Random(); /* for things that require sync */
public static Random CosmeticRandom = new Random(); /* for things that are just fluff */
public static readonly Pair<VoicePool, VoicePool> SovietVoices =
Pair.New(
new VoicePool("ackno", "affirm1", "noprob", "overout", "ritaway", "roger", "ugotit"),
new VoicePool("await1", "ready", "report1", "yessir1"));
}
}