protected override void UnloadData() { m_registeredMethods.Clear(); m_registeredMethods = null; Static = null; NetUtil.UnregisterMessageHandlers(HANDLER_ID); }
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(); }