EchoTrio
 
Loading...
Searching...
No Matches
Persona.cs
Go to the documentation of this file.
1using System;
2
3namespace EchoTrio {
4 /// Personas the actors will role-play.
5 public enum Persona {
6 Athena,
8 }
9
10 public static class PersonaExtensions {
11 public const Persona DefaultValue = Persona.Athena;
12
13 public static string ToString(this Persona persona) {
14 switch (persona) {
15 case Persona.Athena: return "Athena";
16 case Persona.Poseidon: return "Poseidon";
17 default: throw new NotImplementedException();
18 }
19 }
20 }
21}
const Persona DefaultValue
Definition: Persona.cs:11
static string ToString(this Persona persona)
Definition: Persona.cs:13
Persona
Personas the actors will role-play.
Definition: Persona.cs:5