Buildings

The Building class is the most important class in the kit. It manages the details of buildings, activities and occupants. It contains almost all of the data stored when the system is saved and provides public methods for interacting with buildings (such as building them, moving them, or starting new activities).

Buildings have a type and most of the behaviour of a building comes from the parameters defined in the building type.

 

Configuring New Buildings

Buildings are configured in an XML file. Use the sample XML file BuildingData.xml as your starting point. You can use any name for the building data file as long as you place it in a Unity Resources folder (any folder in the asset directory named Resources).

If you wish to use different XML files you must set the names in the properties of the BuildingManager object:

Note that the extension .xml is not included in the entry. It is however required for the filename.

 

Building Details

For details about configuring buildings see: The Building Configuration File

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk