From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Assets/Scripts/XMainClient/XDialogSentence.cs | 92 ++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/XDialogSentence.cs (limited to 'Client/Assets/Scripts/XMainClient/XDialogSentence.cs') diff --git a/Client/Assets/Scripts/XMainClient/XDialogSentence.cs b/Client/Assets/Scripts/XMainClient/XDialogSentence.cs new file mode 100644 index 00000000..75858bca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDialogSentence.cs @@ -0,0 +1,92 @@ +using System; + +namespace XMainClient +{ + internal struct XDialogSentence + { + public int Talker + { + get + { + return this.m_Talker; + } + set + { + this.m_Talker = value; + this.m_Inited = true; + } + } + + public string Content + { + get + { + return this.m_Content; + } + set + { + this.m_Content = value; + } + } + + public string Voice + { + get + { + return this.m_Voice; + } + set + { + this.m_Voice = value; + } + } + + public bool bCanReject + { + get + { + return this.m_bCanReject; + } + set + { + this.m_bCanReject = value; + } + } + + public bool Inited + { + get + { + return this.m_Inited; + } + } + + private int m_Talker; + + private string m_Content; + + private string m_Voice; + + private bool m_bCanReject; + + private bool m_Inited; + + public XDialogSentence(int _talker, string _content, string _voice = null, bool _bCanReject = false) + { + this.m_Talker = _talker; + this.m_Inited = false; + this.m_Content = _content; + this.m_Voice = _voice; + this.m_bCanReject = _bCanReject; + } + + public void Reset() + { + this.m_Talker = -1; + this.Content = string.Empty; + this.Voice = string.Empty; + this.m_bCanReject = false; + this.m_Inited = false; + } + } +} -- cgit v1.1-26-g67d0