public void DirectionToType()
        {
            Direction original = Direction.None;

            Direction.Types expressive = (Direction.Types)original;
            Direction       converted  = (Direction)expressive;

            Assert.Equal(original, converted);
        }
Пример #2
0
 float WindStrength;                     //meters per second
 public WeatherComponent() : base(true, false, false, false)
 {
     WindDirection = EnumUtils.RandomEnumValue <Direction.Types>();
     WindStrength  = Calculate.PercentValue() / 10.01f; //arbitrary?
     Fxyt          = Formulae.RandomWindPattern();      //todo... this, but better
 }