Plugins/ObsoleteMembers

From Torch Wiki
Jump to navigation Jump to search

Network Intercept

Network intercept is a system that allows plugins to intercept incoming RPC events from clients, mutate the data, and then pass the message back into the server, or discard it completely.

This system was a holdover from SESE. It was deprecated with the February 28 2019 update. All plugins should move to patching the RPC methods directly instead of using this system.

Network intercept will be removed in July 2019. Please update your plugins before then.

Network Injection

Network injection does what it says on the tin. It allows a plugin to inject RPC events into the outgoing network stream. This is useful for performing actions on clients that would otherwise be inaccessible.

The original implementation is another holder from SESE, and is extremely hard on performance.

This system was deprecated with the February 28 2019 update. All plugins should switch to the new injection system.

A replacement was implemented at the same time which leverages generics instead of nasty reflection. Please use the methods NetworkManager.RaiseEvent<T1..T7>() and NetworkManager.RaiseStaticEvent<T1..T6>() instead. This new system is much more performant and reliable.

The old network injection will be removed in July 2019. Please update your plugins.

Network Manager

Network manager was a manager which contained the instance of all inject and intercept code. This class is no longer a manager. The new inject code is stateless, so NetworkManager is now a static class. Calling GetManager<NetworkManager> will now always return null.