/// <summary>
 /// Unloads all data used by this session component
 /// </summary>
 protected override void UnloadData()
 {
     m_registeredMethods.Clear();
     m_registeredMethods = null;
     Static = null;
     MyNetUtil.UnregisterMessageHandlers(HANDLER_ID);
 }
        /// <summary>
        /// Initializes the network message handler, by registering it in SpaceEngineers and
        /// registering all networking methods using the networking attributes.
        /// </summary>
        public override void LoadData()
        {
            m_registeredMethods = new Dictionary <ulong, MethodInfo>();
            Static = this;
            MyNetUtil.RegisterMessageHandler(HANDLER_ID, MessageHandler);

            RegisterAll();
            //Register(typeof(SystemGenerator));
        }