-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BingoSyncGoalPack.cs
32 lines (29 loc) · 1.06 KB
/
BingoSyncGoalPack.cs
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
global using static BingoSyncGoalPack.BingoSyncGoalPack;
using BingoSyncGoalPack.MonitorHooks;
using System.Linq;
using Terraria;
using Terraria.Localization;
using Terraria.ModLoader;
namespace BingoSyncGoalPack {
public class BingoSyncGoalPack : Mod {
public static string GithubUserName => "Starwort";
public static string GithubProjectName => "BingoGoalPack-BingoSyncGoals";
internal static string translate(string key, params string[] substitutions) {
return Language.GetTextValue(
"Mods.BingoSyncGoalPack." + key,
substitutions.Select(
sub => Language.GetTextValue(sub)
).ToArray()
);
}
public override void PostSetupContent() {
BingoBoardCore.BingoBoardCore.onGameStart(() => {
foreach (var player in Main.player) {
if (player.TryGetModPlayer(out PlayerHooks hooks)) {
hooks.onGameStart();
}
}
});
}
}
}