public static List <QuestAction> CreateList(QuestActionProxyContainer proxy) { if (proxy == null || proxy.actions == null) { return(new List <QuestAction>()); } return(QuestActionProxy.CreateList(proxy.actions)); }
public void CopyTo(QuestStateInfo stateInfo) { if (stateInfo == null) { Debug.LogWarning("Quest Machine: QuestStateInfoProxy.CopyTo destination is null."); return; } stateInfo.actionList = QuestActionProxy.CreateList(acn); stateInfo.categorizedContentList = new List <QuestContentSet>(); for (int i = 0; i < QuestStateInfo.NumContentCategories; i++) { var contentSet = QuestContentProxy.CreateContentSet(GetContentListProxy((QuestContentCategory)i)); stateInfo.categorizedContentList.Add(contentSet); } }