summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/XDialogSentence.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-01-25 14:28:30 +0800
committerchai <chaifix@163.com>2021-01-25 14:28:30 +0800
commit6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch)
tree7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/XDialogSentence.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/XDialogSentence.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/XDialogSentence.cs92
1 files changed, 92 insertions, 0 deletions
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;
+ }
+ }
+}