From 84d16df16ae29a99db0acc87e91bd27c4e2bba02 Mon Sep 17 00:00:00 2001
From: Nytra <14206961+Nytra@users.noreply.github.com>
Date: Fri, 12 Jul 2024 03:38:16 +0100
Subject: [PATCH] Update for Type Management
---
.../Components/Utility/StringToTypeDriver.cs | 2 +-
ProjectObsidian/ProjectObsidian.csproj | 6 ++++
ProjectObsidian/Properties/AssemblyInfo.cs | 28 +++++++++++++++++++
3 files changed, 35 insertions(+), 1 deletion(-)
create mode 100644 ProjectObsidian/Properties/AssemblyInfo.cs
diff --git a/ProjectObsidian/Components/Utility/StringToTypeDriver.cs b/ProjectObsidian/Components/Utility/StringToTypeDriver.cs
index ce2c61a..c7cf913 100644
--- a/ProjectObsidian/Components/Utility/StringToTypeDriver.cs
+++ b/ProjectObsidian/Components/Utility/StringToTypeDriver.cs
@@ -23,7 +23,7 @@ protected override void OnChanges()
{
try
{
- var parsedType = WorkerManager.ParseNiceType(Text.Value);
+ var parsedType = World.Types.ParseNiceType(Text.Value, allowAmbigious: true);
Target.Target.Value = parsedType;
}
catch (Exception ex)
diff --git a/ProjectObsidian/ProjectObsidian.csproj b/ProjectObsidian/ProjectObsidian.csproj
index 9f2f920..339892e 100644
--- a/ProjectObsidian/ProjectObsidian.csproj
+++ b/ProjectObsidian/ProjectObsidian.csproj
@@ -15,6 +15,12 @@
G:\SteamLibrary\steamapps\common\Resonite\
true
+
+ False
+
+
+ False
+
diff --git a/ProjectObsidian/Properties/AssemblyInfo.cs b/ProjectObsidian/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..251da04
--- /dev/null
+++ b/ProjectObsidian/Properties/AssemblyInfo.cs
@@ -0,0 +1,28 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.42000
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+using System;
+using System.Reflection;
+
+using Elements.Core;
+
+[assembly: System.Reflection.AssemblyCompanyAttribute("Project-Obsidian")]
+[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
+[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © 2024")]
+[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+09f5737d6929d0dd439b34f23667465a4105bc78")]
+[assembly: System.Reflection.AssemblyProductAttribute("Project-Obsidian")]
+[assembly: System.Reflection.AssemblyTitleAttribute("Project-Obsidian")]
+[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
+
+// Generated by the MSBuild WriteCodeFragment class.
+
+//Mark as DataModelAssembly for the Plugin loading system to load this assembly
+[assembly: DataModelAssembly(DataModelAssemblyType.Core)]
\ No newline at end of file