borrowed Mono's RNG.

This commit is contained in:
Chris Forbes
2010-03-08 23:43:53 +13:00
parent 2a95f77760
commit a4032d069e
3 changed files with 145 additions and 3 deletions

View File

@@ -28,6 +28,8 @@ using OpenRA.Graphics;
using OpenRA.Support;
using OpenRA.Traits;
using XRandom = OpenRA.Thirdparty.Random;
namespace OpenRA
{
public class World
@@ -36,8 +38,8 @@ namespace OpenRA
List<IEffect> effects = new List<IEffect>();
List<Action<World>> frameEndActions = new List<Action<World>>();
public Random SharedRandom = new Random(0); // synced
public Random CosmeticRandom = new Random(); // not synced
public XRandom SharedRandom = new XRandom(0); // synced
public XRandom CosmeticRandom = new XRandom(); // not synced
public readonly Dictionary<int, Player> players = new Dictionary<int, Player>();