Added UI for DunGenExtender

Made DevOnly fields readonly
This commit is contained in:
LadyAliceMargatroid 2024-09-10 23:06:32 -07:00
parent 894645d85c
commit 32cebc67d6
12 changed files with 295 additions and 41 deletions

View file

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
namespace DunGenPlus.Attributes {
public class ReadOnlyAttribute : PropertyAttribute {
}
}

View file

@ -23,25 +23,18 @@ namespace DunGenPlus.Collections {
CopyFromNodeList
}
[Header("Main Path")]
public MainPathProperties MainPathProperties = new MainPathProperties();
[Header("Dungeon Bounds")]
public DungeonBoundsProperties DungeonBoundsProperties = new DungeonBoundsProperties();
[Header("Normal Nodes Archetypes")]
public NormalNodeArchetypesProperties NormalNodeArchetypesProperties = new NormalNodeArchetypesProperties();
[Header("Forced Tiles")]
public ForcedTilesProperties ForcedTilesProperties = new ForcedTilesProperties();
[Header("Branch Path Multi Simulation")]
public BranchPathMultiSimulationProperties BranchPathMultiSimulationProperties = new BranchPathMultiSimulationProperties();
[Header("Line Randomizer")]
public LineRandomizerProperties LineRandomizerProperties = new LineRandomizerProperties();
[Header("Miscellaneous")]
public MiscellaneousProperties MiscellaneousProperties = new MiscellaneousProperties();
[Header("Asset Cache (FOR DEV DEBUG PURPOSES ONLY)")]

View file

@ -19,6 +19,7 @@ namespace DunGenPlus {
public DunGenExtenderEvents Events = new DunGenExtenderEvents();
[Header("DEV ONLY: DON'T TOUCH")]
[Attributes.ReadOnly]
public string Version = "0";
internal bool Active = true;

View file

@ -129,6 +129,7 @@
<ItemGroup>
<Compile Include="API.cs" />
<Compile Include="Assets.cs" />
<Compile Include="Attributes\ReadOnlyAttribute.cs" />
<Compile Include="Collections\DunGenExtenderEvents.cs" />
<Compile Include="Collections\DunGenExtenderPropertiesCollection.cs" />
<Compile Include="Collections\ExtenderEvent.cs" />

View file

@ -33,6 +33,7 @@ namespace DunGenPlus {
public PropertyOverride<List<GraphLine>> Lines = new PropertyOverride<List<GraphLine>>(false, new List<GraphLine>());
[Header("DEV ONLY: DON'T TOUCH")]
[Attributes.ReadOnly]
public string Version = "0";
public static IntRange GetLength(MainPathExtender extender, DungeonFlow flow) {