Manager Overview

The manager classes provide convenient methods to control and access various data. You should generally add all manager classes to your scene (or start with a sample scene).

 

Manager

Details

ActivityManager

Manages custom activity types which can be triggered by buildings. ActivityManager is responsible for loading the ActivityData but it does not manage the execution of individual activities. This is done by the building.

BuildingManager

Loads and manages the building types and provides high-level access to the currently built buildings.

The BuildingManager also maintains the static variable ActiveBuilding, the currently selected building frequently used by the UI.

BuildingModeGrid

Manages the grid. When buildings are built they occupy space on the grid. This class lets the building manager know if a space is empty.

InputManager

Provides overarching control of the in-game input like scrolling and zooming.

OccupantManager

Manages the objects that reside inside of buildings. Like the building manager it is primarily responsible for occupant types, but also provides high level access to query the exsiting occupants.

Sprite Manager

Defines the Unity Sprites to use in the game.

Path Manager

Managed path building.

PersistenceManager

Saves the game. The current implementation provides a PlayerPrefs implementation for persistence but this can be easily extended to use another stream such as the file system or a server.

ResourceManager

Stores the gold and resources that the player owns.

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk