EchoTrio
Loading...
Searching...
No Matches
Emotion.cs
Go to the documentation of this file.
1
namespace
EchoTrio
{
2
/// Enum of all the possible emotions the actor can have. This is then used to trigger the facial expressions of the 3D models.
3
/// NOTE: This system is currently not in used, and the facial expressions of the 3D models are being determined via the animation system itself.
4
public
enum
Emotion
{
5
Neutral
= 0,
6
Frustrated
,
7
Happy
,
8
Sad
,
9
10
Num
,
11
}
12
13
public
static
class
EmotionExtensions
{
14
public
static
string
ToString
(
this
Emotion
emotion) {
15
switch
(emotion) {
16
case
Emotion
.Neutral:
return
"Neutral"
;
17
case
Emotion
.Frustrated:
return
"Frustrated"
;
18
case
Emotion
.Happy:
return
"Happy"
;
19
case
Emotion
.Sad:
return
"Sad"
;
20
default
:
throw
new
System.NotImplementedException();
21
}
22
}
23
24
public
static
Emotion
ToEmotion
(
this
string
str) {
25
switch
(str) {
26
case
"Neutral"
:
return
Emotion
.Neutral;
27
case
"Frustrated"
:
return
Emotion
.Frustrated;
28
case
"Happy"
:
return
Emotion
.Happy;
29
case
"Sad"
:
return
Emotion
.Sad;
30
default
:
return
Emotion
.Neutral;
31
}
32
}
33
}
34
}
EchoTrio.EmotionExtensions
Definition:
Emotion.cs:13
EchoTrio.EmotionExtensions.ToString
static string ToString(this Emotion emotion)
Definition:
Emotion.cs:14
EchoTrio.EmotionExtensions.ToEmotion
static Emotion ToEmotion(this string str)
Definition:
Emotion.cs:24
EchoTrio
Definition:
ActorConfigEditor.cs:4
EchoTrio.Emotion
Emotion
Definition:
Emotion.cs:4
EchoTrio.Emotion.Num
@ Num
EchoTrio.Emotion.Sad
@ Sad
EchoTrio.Emotion.Neutral
@ Neutral
EchoTrio.Emotion.Happy
@ Happy
EchoTrio.Emotion.Frustrated
@ Frustrated
Assets
Scripts
VoiceChat
Emotion.cs
Generated by
1.9.6