using System.Collections.Generic;
using UnityEngine;

namespace Wizard;

public abstract class ChatLogContentBase : MonoBehaviour
{
	protected IChatSettings _chatSettings;

	protected ChatConnectController _chatConnectCtr;

	protected ChatLogUI.PartsForPlate _partsForPlate;

	public abstract List<ChatMessageInfo.eMessageType> ListMessagetType { get; }

	public void Init(IChatSettings chatSettings, ChatConnectController chatConnectCtr, ChatLogUI.PartsForPlate partsForPlate)
	{
		_chatSettings = chatSettings;
		_chatConnectCtr = chatConnectCtr;
		_partsForPlate = partsForPlate;
		OnInit();
	}

	protected virtual void OnInit()
	{
	}

	public abstract void SetData(ChatMessageInfo messageInfo);

	public abstract Vector2 GetSize(ChatMessageInfo messageInfo);
}
