Пример #1
0
        //called to check all resources inside the range of the border
        public void CheckAllResources()
        {
            if (gameMgr.ResourceMgr.GetResourcesCount() == 0) //if the resources list is still empty
            {
                return;
            }

            foreach (Resource r in gameMgr.ResourceMgr.GetAllResources()) //go through all the resources in the map
            {
                CheckResource(r);
            }

            CustomEvents.OnBorderResourcesUpdated(this); //trigger custom event
        }