Пример #1
0
        /// <summary>
        /// Gets the resources this location would produce if worked, accounting for terrain improvements, technology,
        /// special resources (including Spaceport effect if you have it), city improvements, wonders, and government,
        /// if worked by the given city.
        /// </summary>
        public PlayResult GetResourcesForCity(City city, out BaseResourceSet resources)
        {
            TileInfo   info   = new TileInfo(city.Id);
            PlayResult result = TheEmpire.Play(Protocol.sGetHypoCityTileInfo, Id, &info);

            resources = info.Resources;
            return(result);
        }
Пример #2
0
        /// <summary>
        /// Gets the resources this location would produce if worked, accounting for terrain improvements, technology,
        /// special resources (including Spaceport effect if you have it), and government. Does not include effects of
        /// city improvements (so farmland is ignored) or the Lighthouse.
        /// </summary>
        public PlayResult GetResources(out BaseResourceSet resources)
        {
            TileInfo   info;
            PlayResult result = TheEmpire.Play(Protocol.sGetTileInfo, Id, &info);

            resources = info.Resources;
            return(result);
        }