Ejemplo n.º 1
0
        private static async Task DoCaravanWork()
        {
            while (true)
            {
                List <Caravan> carl = MapMovementUpdater.GetAllCaravans();
                foreach (Caravan car in carl)
                {
                    Caravan updatedObj = MapMovementUpdater.UpdateCaravanPosition(car);
                    updatedObj = null;
                }
                carl = null;

                await Task.Delay(1);
            }
        }
Ejemplo n.º 2
0
        private static async Task DoBattlegroupWork()
        {
            while (true)
            {
                List <Battlegroup> bgl = MapMovementUpdater.GetAllBattlegroups();
                foreach (Battlegroup bg in bgl)
                {
                    Battlegroup updatedObj = MapMovementUpdater.UpdateBattlegroupPosition(bg);
                    updatedObj = null;
                }
                bgl = null;

                await Task.Delay(1);
            }
        }