-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathUtil.cs
More file actions
20 lines (16 loc) · 751 Bytes
/
Util.cs
File metadata and controls
20 lines (16 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using SDG.Unturned;
namespace ExtraConcentratedJuice.BreakAndEnter
{
public static class Util
{
public static string Translate(string TranslationKey, params object[] Placeholders) =>
BreakAndEnter.instance.Translations.Instance.Translate(TranslationKey, Placeholders);
public static void ToggleDoor(InteractableDoor door, bool open)
{
BarricadeManager.tryGetInfo(door.transform, out byte x, out byte y, out ushort plant, out ushort index, out BarricadeRegion region);
door.updateToggle(open);
BarricadeManager.instance.channel.send("tellToggleDoor", ESteamCall.ALL,
ESteamPacket.UPDATE_RELIABLE_BUFFER, x, y, plant, index, open);
}
}
}