Factory

The Factory is a type of building that is able to produce units. It is also where the resources are stored in.

In Planet X2
The construction of units requires a certain amount of resources. It also takes time to produce units and while a unit is in construction the building is stated to be working. If all of the player's factories are destroyed the player loses the game.