struct BuildingData changed to struct ObjectData