private void Setup(ResponseTextCapsule responseTextCapsule) { responseEventText = responseTextCapsule.ResponseEvents.Key; responseEvents = responseTextCapsule.ResponseEvents; actions = responseTextCapsule.Actions; canvas = responseTextCapsule.EventTextCanvas; }
public EventTextCapsule(EventText completedText, EventText failedText, EventTextCanvas eventTextCanvas, List <PortraitID> portraits, List <int> portraitTriggers) : this(completedText, failedText, eventTextCanvas) { this.portraits = portraits; this.portraitTriggers = portraitTriggers; }
public ResponseTextCapsule(EventText eventText, List <EventText> responses, List <System.Action> actions, EventTextCanvas canvas) { responseEvents = new KeyValuePair <EventText, List <EventText> >(eventText, responses); this.actions = new SortedDictionary <int, System.Action>(); for (int i = 0; i < actions.Count; i++) { this.actions.Add(i, actions[i]); } eventTextCanvas = canvas; }
public EventTextCapsule(EventText completedText, EventText failedText, EventTextCanvas eventTextCanvas) { this.completedText = completedText; this.FailedText = failedText; this.eventTextCanvas = eventTextCanvas; if (completedText == null) { this.completedText = new EventText(""); } if (failedText == null) { this.failedText = new EventText(""); } portraits = new List <PortraitID>(); portraitTriggers = new List <int>(); }
public EventTextCapsule(EventText completedText, EventText failedText, EventTextCanvas eventTextCanvas, PortraitID portrait) : this(completedText, failedText, eventTextCanvas) { portraits.Add(portrait); }