Loading...
Searching...
No Matches
CityBuilderCore.BuildingReference Class Reference

Detailed Description

reference to a building that is reset when a building gets replaced
never assign buildings directly when there is any chance they might be replaced

Public Member Functions

 BuildingReference (IBuilding building)
 

Properties

IBuilding Instance [get]
 the currently referenced building
 
bool HasInstance [get]
 check if the building still exists or if it has been terminated
 
Guid Id [get]
 

Events

Action< IBuilding, IBuildingReplacing
 fired during building replacement, both original and replacement exist at that point