1using System.Collections.Generic;
15 public Dictionary<string, int>
steps =
new Dictionary<string, int>();
17 public Dictionary<string, DramaActor>
actors =
new Dictionary<string, DramaActor>();
19 public List<DramaEvent>
events =
new List<DramaEvent>();
31 public List<DramaEvent>
tempEvents =
new List<DramaEvent>();
59 if (
actors.ContainsKey(
id))
78 if (@event.
step == idStep)
88 if (
actors.ContainsKey(
id))
93 dramaActor.
Init(
this,
id, person);
94 actors.Add(
id, dramaActor);
110 if (!e.
step.IsEmpty())
130 if (!
id.IsEmpty() && !
steps.ContainsKey(
id))
134 Play((!
string.IsNullOrEmpty(
id)) ?
steps[
id] : 0);
137 public void Play(
int eventID = 0)
143 if (eventID >=
events.Count)
155 string text = eventID +
"/";
156 foreach (KeyValuePair<string, int> step
in steps)
158 if (step.Value == eventID)
162 if (step.Value == eventID && !step.Key.StartsWith(
"flag"))
176 manager.SetActive(enable:
false);
void Init(DramaSequence _sequence, string _id, Person _owner)
Dictionary< string, DramaActor > actors
List< DramaEvent > events
T GetEvent< T >(string idStep)
DramaActor AddActor(string id, Person person)
DramaActor GetActor(string id)
DramaEvent AddEvent(DramaEvent e)
List< DramaEvent > tempEvents
Dictionary< string, int > steps
static SourceManager sources