[DLL] City counterpart events

whoward69

DLL Minion
Joined
May 30, 2011
Messages
8,727
Location
Near Portsmouth, UK
The DLL currently provides the following "CityCan" events

  • CityCanTrain(iPlayer, iCity, iUnit)
  • CityCanConstruct(iPlayer, iCity, iBuilding)
  • CityCanCreate(iPlayer, iCity, iProject)
  • CityCanBuyPlot(iPlayer, iCity, iPlotX, iPlotY)

Proposing to add the following counterparts

  • CityTrained(iPlayer, iCity, iUnit, bGold, bFaith)
  • CityConstructed(iPlayer, iCity, iBuilding, bGold, bFaith)
  • CityCreated(iPlayer, iCity, iProject, bGold, bFaith) *1
  • CityBoughtPlot(iPlayer, iCity, iPlotX, iPlotY, bGold, bCulture)

*1 the code exists to buy Projects (there is no UI to do this though)
 
Should you include CitySoldBuilding(iPlayer, iCity, iBuilding, bGold) which can detects when a building is sold in the city.


Also, would it be worth while intergrating your RouteConnection utils to increase performance versus the lua version?
CityIsConnected(iPlayer, iCity, iDestination, iRouteType, etc...)
 
Should you include CitySoldBuilding(iPlayer, iCity, iBuilding, bGold) which can detects when a building is sold in the city.
I'll add that to the list


Also, would it be worth while intergrating your RouteConnection utils to increase performance versus the lua version?
CityIsConnected(iPlayer, iCity, iDestination, iRouteType, etc...)
That would be a lot of work
 
Back
Top Bottom