Restructured for new direction.
This commit is contained in:
@@ -40,7 +40,7 @@ namespace BriarQueen.Editor.Drawers.Registries
|
||||
|
||||
switch (entry.EntryType)
|
||||
{
|
||||
case CodexType.BookEntry:
|
||||
case CodexType.DocumentEntry:
|
||||
books.Add(entry);
|
||||
break;
|
||||
|
||||
|
||||
@@ -435,17 +435,17 @@ namespace BriarQueen.Editor.Windows
|
||||
|
||||
if (_createBookEntries)
|
||||
{
|
||||
ProcessEnum<BookEntryID, CodexEntrySo>(
|
||||
ProcessEnum<DocumentEntryID, CodexEntrySo>(
|
||||
rootFolder: _codexRootFolder,
|
||||
folderName: "Books",
|
||||
noneValue: BookEntryID.None,
|
||||
folderName: "Documents",
|
||||
noneValue: DocumentEntryID.None,
|
||||
assetExtensionName: key => key.ToString(),
|
||||
loadExistingAsset: path => AssetDatabase.LoadAssetAtPath<CodexEntrySo>(path),
|
||||
createAsset: () => CreateInstance<CodexEntrySo>(),
|
||||
applyValues: (so, key) =>
|
||||
{
|
||||
SetEnumField(so, "_codexType", (int)CodexType.BookEntry);
|
||||
SetEnumField(so, "_bookEntryID", (int)key);
|
||||
SetEnumField(so, "_codexType", (int)CodexType.DocumentEntry);
|
||||
SetEnumField(so, "_documentEntryID", (int)key);
|
||||
SetEnumField(so, "_clueEntryID", (int)ClueEntryID.None);
|
||||
SetEnumField(so, "_photoEntryID", (int)PhotoEntryID.None);
|
||||
SetStringFieldIfEmpty(so, "_title", ObjectNames.NicifyVariableName(key.ToString()));
|
||||
@@ -467,7 +467,7 @@ namespace BriarQueen.Editor.Windows
|
||||
applyValues: (so, key) =>
|
||||
{
|
||||
SetEnumField(so, "_codexType", (int)CodexType.PuzzleClue);
|
||||
SetEnumField(so, "_bookEntryID", (int)BookEntryID.None);
|
||||
SetEnumField(so, "_documentEntryID", (int)DocumentEntryID.None);
|
||||
SetEnumField(so, "_clueEntryID", (int)key);
|
||||
SetEnumField(so, "_photoEntryID", (int)PhotoEntryID.None);
|
||||
SetStringFieldIfEmpty(so, "_title", ObjectNames.NicifyVariableName(key.ToString()));
|
||||
@@ -489,7 +489,7 @@ namespace BriarQueen.Editor.Windows
|
||||
applyValues: (so, key) =>
|
||||
{
|
||||
SetEnumField(so, "_codexType", (int)CodexType.Photo);
|
||||
SetEnumField(so, "_bookEntryID", (int)BookEntryID.None);
|
||||
SetEnumField(so, "_documentEntryID", (int)DocumentEntryID.None);
|
||||
SetEnumField(so, "_clueEntryID", (int)ClueEntryID.None);
|
||||
SetEnumField(so, "_photoEntryID", (int)key);
|
||||
SetStringFieldIfEmpty(so, "_title", ObjectNames.NicifyVariableName(key.ToString()));
|
||||
@@ -652,4 +652,4 @@ namespace BriarQueen.Editor.Windows
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user