using System;

namespace QC.CTDS.DM.DataStructures.PluginDataStructure;

public class BasePlugin
{
	private string pluginName = "<No Name>";

	public Action<string, LogType> OnWriteLog;

	public Action<PluginMessage, string> OnMessageFromPlugin;

	public string PluginName
	{
		get
		{
			return pluginName;
		}
		set
		{
			pluginName = value;
		}
	}

	public void WriteLog(string message, LogType logMessageType)
	{
		if (OnWriteLog != null)
		{
			OnWriteLog(message, logMessageType);
		}
	}

	public virtual void MessageToPlugin(PluginMessage msg)
	{
	}
}
