removed a ton of xml comments and such
This commit is contained in:
@@ -2,17 +2,14 @@ using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Jovian.EncounterSystem {
|
||||
/// <summary>
|
||||
/// Reusable asset containing the dialog options shown for an encounter. Stored as an asset so a
|
||||
/// single set can be shared across encounters when the same choices apply. When <see cref="id"/>
|
||||
/// changes the asset file auto-renames to match (editor-only).
|
||||
/// </summary>
|
||||
/// <summary>Reusable dialog option list. Asset file auto-renames to match <see cref="id"/>.</summary>
|
||||
[CreateAssetMenu(fileName = "EncounterDialogOptionSet", menuName = "Jovian/Encounter System/Dialog Option Set", order = 2)]
|
||||
public class EncounterDialogOptionSet : ScriptableObject {
|
||||
/// <summary>Designer-facing identifier for this option set. The asset file renames to match.</summary>
|
||||
public string id;
|
||||
|
||||
/// <summary>Ordered list of options presented to the player.</summary>
|
||||
/// <summary>Shared library for every option's <see cref="EncounterDialogOption.text"/> lookup.</summary>
|
||||
public DialogLineLibrary library;
|
||||
|
||||
public List<EncounterDialogOption> options;
|
||||
|
||||
#if UNITY_EDITOR
|
||||
@@ -21,7 +18,7 @@ namespace Jovian.EncounterSystem {
|
||||
return;
|
||||
}
|
||||
|
||||
// Deferred — AssetDatabase calls are unsafe from OnValidate.
|
||||
// AssetDatabase calls are unsafe from OnValidate — defer.
|
||||
UnityEditor.EditorApplication.delayCall += RenameToMatchId;
|
||||
}
|
||||
|
||||
@@ -31,10 +28,7 @@ namespace Jovian.EncounterSystem {
|
||||
}
|
||||
|
||||
var path = UnityEditor.AssetDatabase.GetAssetPath(this);
|
||||
if(string.IsNullOrEmpty(path)) {
|
||||
return;
|
||||
}
|
||||
if(name == id) {
|
||||
if(string.IsNullOrEmpty(path) || name == id) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user