2023-10-04 17:21:15 +00:00
|
|
|
static character_state CR_CharacterStateFromString(string String)
|
|
|
|
{
|
|
|
|
character_state Result = CR_State_Invalid;
|
|
|
|
if(0) {}
|
|
|
|
else if(AreEqual(String, StrLit("none"))) { Result = CR_State_None; }
|
|
|
|
else if(AreEqual(String, StrLit("normal"))) { Result = CR_State_Normal; }
|
|
|
|
else if(AreEqual(String, StrLit("happy"))) { Result = CR_State_Happy; }
|
2023-10-29 10:00:34 +00:00
|
|
|
else if(AreEqual(String, StrLit("leaning"))) { Result = CR_State_Leaning; }
|
2023-10-04 17:21:15 +00:00
|
|
|
return(Result);
|
|
|
|
}
|
|
|
|
|