public static bool Run(ILayerController layerController) => ForHeader("Layer control", () =>
 {
     if (layerController.ShowMap.HasValue)
     {
         ForEdit("Show MAP", () => layerController.ShowMap.Value, x => layerController.ShowMap = x);
     }
     if (layerController.ShowSk0.HasValue)
     {
         ForEdit("Show SK0", () => layerController.ShowSk0.Value, x => layerController.ShowSk0 = x);
     }
     if (layerController.ShowSk1.HasValue)
     {
         ForEdit("Show SK1", () => layerController.ShowSk1.Value, x => layerController.ShowSk1 = x);
     }
     if (layerController.ShowBobs.HasValue)
     {
         ForEdit("Show BOBs", () => layerController.ShowBobs.Value, x => layerController.ShowBobs = x);
     }
     if (layerController.ShowMapCollision.HasValue)
     {
         ForEdit("Show map collisions", () => layerController.ShowMapCollision.Value, x => layerController.ShowMapCollision = x);
     }
     if (layerController.ShowCameraCollision.HasValue)
     {
         ForEdit("Show camera collisions", () => layerController.ShowCameraCollision.Value, x => layerController.ShowCameraCollision = x);
     }
     if (layerController.ShowLightCollision.HasValue)
     {
         ForEdit("Show light collisions", () => layerController.ShowLightCollision.Value, x => layerController.ShowLightCollision = x);
     }
 });
Exemple #2
0
 public YamlSourceController(ILayerController layerController)
 {
     _layerController = layerController;
 }