Loading...
Searching...
No Matches
CityBuilderCore.BuildingComponentReference< T > Class Template Reference

Detailed Description

reference to a building component that will keep working even when the building gets replaced
it can also be saved to keep building component referenes alive across save/load
should always be used when a reference to a building component is stored in some way

Template Parameters
T
Type Constraints
T :IBuildingComponent 

Public Member Functions

 BuildingComponentReference (T component)
 
BuildingComponentReferenceData GetData ()
 

Properties

Instance [get, set]
 
bool HasInstance [get]
 the component referenced is still alive