示例#1
0
 protected override void UnloadData()
 {
     m_registeredMethods.Clear();
     m_registeredMethods = null;
     Static = null;
     NetUtil.UnregisterMessageHandlers(HANDLER_ID);
 }
示例#2
0
        public override void LoadData()
        {
            m_registeredMethods = new Dictionary <ulong, MethodInfo>();
            Static = this;
            NetUtil.RegisterMessageHandler(HANDLER_ID, MessageHandler);

            Register(typeof(SystemGenerator));
        }
        /// <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();
        }