A game about forced loneliness, made by TACStudios
1using System.Collections.Generic;
2
3namespace Unity.VisualScripting
4{
5 [Plugin(ID)]
6 [PluginDependency(BoltCore.ID)]
7 [Product(BoltProduct.ID)]
8 [PluginRuntimeAssembly("Unity." + ID)]
9 public sealed class BoltFlow : Plugin
10 {
11 public BoltFlow()
12 {
13 instance = this;
14 }
15
16 public static BoltFlow instance { get; private set; }
17
18 [RenamedFrom("Bolt.Flow")]
19 public const string ID = "VisualScripting.Flow";
20
21 public static BoltFlowManifest Manifest => (BoltFlowManifest)instance?.manifest;
22
23 public static BoltFlowConfiguration Configuration => (BoltFlowConfiguration)instance?.configuration;
24
25 public static BoltFlowResources Resources => (BoltFlowResources)instance?.resources;
26
27 public static BoltFlowResources.Icons Icons => Resources?.icons;
28
29 public static BoltFlowPaths Paths => (BoltFlowPaths)instance?.paths;
30
31 public const string LegacyRuntimeDllGuid = "a040fb66244a7f54289914d98ea4ef7d";
32
33 public const string LegacyEditorDllGuid = "6cb65bfc2ee1c854ca1382175f3aba91";
34
35 public override IEnumerable<ScriptReferenceReplacement> scriptReferenceReplacements
36 {
37 get
38 {
39#pragma warning disable 618
40 yield return ScriptReferenceReplacement.From<ScriptMachine>(ScriptReference.Dll(LegacyRuntimeDllGuid, "Bolt", "FlowMachine"));
41 yield return ScriptReferenceReplacement.From<ScriptGraphAsset>(ScriptReference.Dll(LegacyRuntimeDllGuid, "Bolt", "FlowMacro"));
42 // Variables moved to Bolt.Core assembly in v.1.3
43 yield return ScriptReferenceReplacement.From<Variables>(ScriptReference.Dll(LegacyRuntimeDllGuid, "Bolt", "Variables"));
44 yield return ScriptReferenceReplacement.From<SceneVariables>(ScriptReference.Dll(LegacyRuntimeDllGuid, "Bolt", "SceneVariables"));
45 yield return ScriptReferenceReplacement.From<VariablesAsset>(ScriptReference.Dll(LegacyRuntimeDllGuid, "Bolt", "VariablesAsset"));
46#pragma warning restore 618
47 }
48 }
49
50 public override IEnumerable<string> tips
51 {
52 get
53 {
54 yield return "Did you know you can dance?";
55 yield return "Lorem ipsum dolor sit amet";
56 }
57 }
58
59 public override void RunAction()
60 {
61 UnitBase.Build(true);
62 }
63 }
64}