Added UI for DunGenExtender
Made DevOnly fields readonly
This commit is contained in:
parent
894645d85c
commit
32cebc67d6
12 changed files with 295 additions and 41 deletions
12
DunGenPlus/DunGenPlus/Attributes/ReadOnlyAttribute.cs
Normal file
12
DunGenPlus/DunGenPlus/Attributes/ReadOnlyAttribute.cs
Normal 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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -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)")]
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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" />
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue