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

Detailed Description

holds a reference to a structure which may be replaced(for example buildings being replaced when they evolve)
therefore if a structure is replaced by some other equivalent structure references that other entities have on it dont break

Public Member Functions

 StructureReference (IStructure instance)
 
void Replace (IStructure replacement)
 

Properties

IStructure Instance [get]
 the currently referenced structure
 
bool HasInstance [get]
 check if the structure still exists or if it has been terminated
 

Events

Action< IStructure, IStructureReplacing
 fired when the structure gets replaced