-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathDragonLens.cs
More file actions
39 lines (32 loc) · 930 Bytes
/
DragonLens.cs
File metadata and controls
39 lines (32 loc) · 930 Bytes
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
36
37
38
39
global using Microsoft.Xna.Framework;
global using Microsoft.Xna.Framework.Graphics;
global using ReLogic.Content;
global using Terraria;
global using Terraria.ModLoader;
using DragonLens.Content.Tools.Multiplayer;
using DragonLens.Core.Systems;
using DragonLens.Core.Systems.ToolSystem;
using System.IO;
namespace DragonLens
{
public class DragonLens : Mod
{
public static DragonLens instance;
public DragonLens()
{
instance = this;
}
public override void HandlePacket(BinaryReader reader, int whoAmI)
{
string type = reader.ReadString();
if (type == "ToolPacket")
ToolHandler.HandlePacket(reader, whoAmI);
if (type == "AdminUpdate")
PermissionHandler.HandlePacket(reader, whoAmI);
if (type == "ToolDataRequest")
PermissionHandler.SendToolData(whoAmI);
if (type == "PlayerManager")
PlayerManagerNetHandler.HandlePacket(reader);
}
}
}