Create module subsystem under TShockAPI.Modules

This should allow for TShock.cs to be split up to mini-modules, or "micro-plugins"
This commit is contained in:
Luke 2022-03-05 22:49:52 +10:00
parent d3adc6db42
commit d2a060b76e
3 changed files with 142 additions and 0 deletions

View file

@ -0,0 +1,34 @@
/*
TShock, a server mod for Terraria
Copyright (C) 2011-2019 Pryaxis & TShock Contributors
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
using System;
namespace TShockAPI.Modules
{
public abstract class Module : IDisposable
{
/// <summary>
/// Entry point of the module
/// </summary>
public abstract void Initialise();
/// <summary>
/// Resource cleanup, e.g. hooks and events
/// </summary>
public virtual void Dispose() { }
}
}