public static void Deinit()
 {
     if (!NetManagerMod._isDeployed)
     {
         return;
     }
     NetManagerMod.m_cachedNodeData = (NodeData[])null;
     NetManagerMod._redirection.Revert();
     NetManagerMod._redirection = (Redirection <NetManager, NetManagerMod>)null;
     NetManagerMod.PreReleaseNodeImplementation        = (NetManagerMod.PreReleaseNodeImplementationCallback)null;
     NetManagerMod.ReleaseNodeImplementation           = (NetManagerMod.ReleaseNodeImplementationCallback)null;
     SerializableDataExtension.instance.EventSaveData -= new SerializableDataExtension.SaveDataEventHandler(NetManagerMod.OnSaveData);
     NetManagerMod._isDeployed = false;
 }
 public static void Init()
 {
     if (NetManagerMod._isDeployed)
     {
         return;
     }
     if (!NetManagerMod.TryLoadData(out NetManagerMod.m_cachedNodeData))
     {
         Utils.Log((object)"Loading default net node data.");
     }
     NetManagerMod.PreReleaseNodeImplementation = (NetManagerMod.PreReleaseNodeImplementationCallback)Utils.CreateDelegate <NetManager, NetManagerMod.PreReleaseNodeImplementationCallback>("PreReleaseNodeImplementation", (object)Singleton <NetManager> .instance);
     NetManagerMod.ReleaseNodeImplementation    = (NetManagerMod.ReleaseNodeImplementationCallback)Utils.CreateDelegate <NetManager, NetManagerMod.ReleaseNodeImplementationCallback>("ReleaseNodeImplementation", (object)Singleton <NetManager> .instance);
     NetManagerMod._redirection = new Redirection <NetManager, NetManagerMod>("ReleaseNode");
     SerializableDataExtension.instance.EventSaveData += new SerializableDataExtension.SaveDataEventHandler(NetManagerMod.OnSaveData);
     NetManagerMod._isDeployed = true;
 }