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.TryGetValue(
id, out var value))
79 name = value2.GetName()
83 person.idPortrait =
"UN_" +
id +
".png";
102 if (@event.
step == idStep)
112 if (
actors.TryGetValue(
id, out var value))
117 value.Init(
this,
id, person);
134 if (!e.
step.IsEmpty())
154 if (!
id.IsEmpty() && !
steps.ContainsKey(
id))
158 Play((!
string.IsNullOrEmpty(
id)) ?
steps[
id] : 0);
161 public void Play(
int eventID = 0)
167 if (eventID >=
events.Count)
179 string text = eventID +
"/";
180 foreach (KeyValuePair<string, int> step
in steps)
182 if (step.Value == eventID)
186 if (step.Value == eventID && !step.Key.StartsWith(
"flag"))
200 manager.SetActive(enable:
false);
GlobalCharaList globalCharas
static Chara Create(string id, int lv=-1)
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
Chara FindChara(string id)
static HashSet< string > allIds