Ejemplo n.º 1
0
        public void RollIntervalTest()
        {
            ArenaObjectSpawnerParams p = new ArenaObjectSpawnerParams();

            p.MinInterval = 1;
            p.MaxInterval = 10;
            Assert.IsTrue(p.RollInterval() <= p.MaxInterval && p.RollInterval() >= p.MinInterval);
        }
Ejemplo n.º 2
0
 protected ArenaObjectSpawner(ArenaObjectSpawnerParams _params, AbstractArenaObjectFactory[] factories)
 {
     Params        = _params;
     Factories     = factories;
     SpawnInterval = Params.RollInterval();
     LastSpawnTime = -SpawnInterval + Params.StartDelay;
 }