/// <summary> /// For a good module experience, your module should clean up ANY and ALL entities /// and controls that were created and added to either the World or SpriteScreen. /// Be sure to remove any tabs added to the Director window, CornerIcons, etc. /// </summary> protected override void Unload() { _exampleIcon.Dispose(); _dungeonContextMenuStrip.Dispose(); // Static members are not automatically cleared and will keep a reference to your, // module unless manually unset. ModuleInstance = null; }
public ExampleBHUDModule([Import("ModuleParameters")] ModuleParameters moduleParameters) : base(moduleParameters) { ModuleInstance = this; }