/// <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; }
public NpcPackage() { Interaction = new NpcInteraction(); ActiveNpcs = new List<ActiveNpc>(); Ai = new NpcAi[10]; Races = new NpcRace[10]; Types = new NpcType[10]; }
public void Add(string line, NpcInteraction.NpcInteractionState state) { Lines.Add(new NpcDialogLine(line, state)); }
public NpcDialogLine(string line, NpcInteraction.NpcInteractionState state) { Line = line; State = state; }