summaryrefslogtreecommitdiff
path: root/Thronefall_v1.57/Thronefall/I2.Loc/LocalizeTargetDesc.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Thronefall_v1.57/Thronefall/I2.Loc/LocalizeTargetDesc.cs')
-rw-r--r--Thronefall_v1.57/Thronefall/I2.Loc/LocalizeTargetDesc.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/Thronefall_v1.57/Thronefall/I2.Loc/LocalizeTargetDesc.cs b/Thronefall_v1.57/Thronefall/I2.Loc/LocalizeTargetDesc.cs
new file mode 100644
index 0000000..44f67b2
--- /dev/null
+++ b/Thronefall_v1.57/Thronefall/I2.Loc/LocalizeTargetDesc.cs
@@ -0,0 +1,17 @@
+using System;
+using UnityEngine;
+
+namespace I2.Loc;
+
+public abstract class LocalizeTargetDesc<T> : ILocalizeTargetDescriptor where T : ILocalizeTarget
+{
+ public override ILocalizeTarget CreateTarget(Localize cmp)
+ {
+ return ScriptableObject.CreateInstance<T>();
+ }
+
+ public override Type GetTargetType()
+ {
+ return typeof(T);
+ }
+}