Scriptum/Assets/Scripts/REFACTORING/Application/Dialogue/Model/DialogueModel.cs

50 lines
1.1 KiB
C#
Raw Permalink Normal View History

2022-10-16 19:40:44 +02:00
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[Serializable]
public class DialogueModel //<TPanel> where TPanel : AbstractPanel
{
[NonSerialized]
public string Header;
2022-10-16 19:40:44 +02:00
public Func<string, DialogueModel, Panel> Panel = PanelFactory.BasePanel;
[SerializeField]
public string Sentence; // { get; set; } // make set private but this will block inspector
[SerializeField]
public List<PanelButtonStepModel> Buttons = new List<PanelButtonStepModel>();
public DialogueModel() { }
public DialogueModel(string _sentence)
{
Sentence = _sentence;
}
public DialogueModel(string _sentence, string _header)
{
Sentence = _sentence;
Header = _header;
}
2022-10-16 19:40:44 +02:00
public DialogueModel(string _sentence, List<PanelButtonStepModel> _buttonsModelsList)
{
Sentence = _sentence;
Buttons = _buttonsModelsList;
}
public DialogueModel(string _sentence, string _header, List<PanelButtonStepModel> _buttonsModelsList)
{
Sentence = _sentence;
Header = _header;
Buttons = _buttonsModelsList;
}
2022-10-16 19:40:44 +02:00
}