-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathYetAnotherRandoConnection.cs
More file actions
35 lines (29 loc) · 1.45 KB
/
YetAnotherRandoConnection.cs
File metadata and controls
35 lines (29 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using Modding;
using System.Collections.Generic;
using UnityEngine;
namespace YetAnotherRandoConnection {
public class YetAnotherRandoConnection: Mod, IGlobalSettings<GlobalSettings> {
new public string GetName() => "YetAnotherRandoConnection";
public override string GetVersion() => "1.2.1.0";
public static GlobalSettings Settings { get; set; } = new();
public void OnLoadGlobal(GlobalSettings s) => Settings = s;
public GlobalSettings OnSaveGlobal() => Settings;
internal static YetAnotherRandoConnection instance;
public YetAnotherRandoConnection() : base(null) {
instance = this;
}
public override void Initialize(Dictionary<string, Dictionary<string, GameObject>> preloadedObjects) {
SoulJarContainer.jarPrefab = preloadedObjects["Ruins1_31"]["Ruins Vial Empty"];
ScarecrowItem.hopperPrefab1 = preloadedObjects["Deepnest_East_16"]["Giant Hopper Summon/Giant Hopper"];
ScarecrowItem.hopperPrefab2 = preloadedObjects["Deepnest_East_16"]["Giant Hopper Summon/Giant Hopper (1)"];
RandoInterop.Hook();
}
public override List<(string, string)> GetPreloadNames() {
return [
("Ruins1_31", "Ruins Vial Empty"),
("Deepnest_East_16", "Giant Hopper Summon/Giant Hopper"),
("Deepnest_East_16", "Giant Hopper Summon/Giant Hopper (1)")
];
}
}
}