Ejemplo n.º 1
0
        private void LoadChangeLayoutResponses()
        {
            ClearPageResponses("ChangeLayoutPage");

            Model model = GetDialogCustomData <Model>();

            StructureBlueprint blueprint = _structure.GetConstructionSiteByID(model.ConstructionSiteID).StructureBlueprint;

            if (!blueprint.IsBuilding || blueprint.BuildingCategory == null)
            {
                return;
            }

            List <BuildingInterior> options = _structure.GetBuildingInteriorsByCategoryID(blueprint.BuildingCategory.BuildingCategoryID);

            foreach (BuildingInterior option in options)
            {
                AddResponseToPage("ChangeLayoutPage", option.Name, true, new Tuple <string, dynamic>(string.Empty, option));
            }

            AddResponseToPage("ChangeLayoutPage", "Back");
        }