public void Open(IEnumerable <string> pack, Util.Maybe <ulong> workshopId) { Open(workshopId); this.pack = pack; if (!workshopId.IsEmpty()) { BehaviorSystem.SavedCardPack existingPack = behaviorSystem.GetCardPack(workshopId.Get()); nameField.text = existingPack.workshopName; descField.text = existingPack.workshopDesc; } }
void StartSelection(System.Action <IEnumerable <string> > selectionFinishedCallback, Util.Maybe <ulong> workshopId) { BehaviorSystem.SavedCardPack pack = null; if (!workshopId.IsEmpty()) { pack = behaviorSystem.GetCardPack(workshopId.Get()); } this.selection = new Selection(selectionFinishedCallback); cardLibraryUI.selectionModePrompt.SetActive(true); foreach (GameObject containerObj in cardContainerObjects) { StartSelectionForContainerObj(containerObj, pack); } }