Пример #1
0
 /// <summary>
 /// Gets a dialog line to use via an npc interaction state
 /// </summary>
 /// <param name="state"></param>
 /// <returns></returns>
 public NpcDialogLine Get(NpcInteraction.NpcInteractionState state)
 {
     foreach (NpcDialogLine line in Lines)
     {
         if (line.State == state) { return line; }
     }
     return null;
 }
Пример #2
0
 public NpcPackage()
 {
     Interaction = new NpcInteraction();
     ActiveNpcs = new List<ActiveNpc>();
     Ai = new NpcAi[10];
     Races = new NpcRace[10];
     Types = new NpcType[10];
 }
Пример #3
0
 public void Add(string line, NpcInteraction.NpcInteractionState state)
 {
     Lines.Add(new NpcDialogLine(line, state));
 }
Пример #4
0
 public NpcDialogLine(string line, NpcInteraction.NpcInteractionState state)
 {
     Line = line;
     State = state;
 }