public override void LoadData() { MyAPIGateway.Entities.OnEntityAdd += EntityAdded; Instance = this; Net.Register(); CachedPacketServer = new PacketServer(); CachedPacketClient = new PacketClient(); }
protected override void UnloadData() { MyAPIGateway.Entities.OnEntityAdd -= EntityAdded; Instance = null; Net?.Unregister(); Net = null; Utils.Grids.Clear(); }