public static void Save(Talkable talkable) { var options = OptionsController.GetOptions(); RTFDocument doc = CreateDocument(); doc = AddTalkable(doc, talkable, options); RTFParser.ToFile("Assets/" + PlayerSettings.productName + " Screenplay - " + talkable.name + " - " + options.currentLanguage + ".rtf", doc); AssetDatabase.Refresh(); }
private void Refresh() { options = OptionsController.GetOptions(); interactables = InteractablesController.GetInteractables(options); try { TalkableId = serializedObject.FindProperty("talkableId"); } catch (Exception) { // ignored } }
public static void SaveAll() { var options = OptionsController.GetOptions(); var characters = CharactersController.GetCharacters(options); RTFDocument doc = CreateDocument(); foreach (Character character in characters) { doc = AddTalkable(doc, character, options); } RTFParser.ToFile("Assets/" + PlayerSettings.productName + " Screenplay - " + options.currentLanguage + ".rtf", doc); AssetDatabase.Refresh(); }
public void GetOptions_methodCalled_OptionsReturned() { var result = _controller.GetOptions(); result.Should().BeOfType <OkNegotiatedContentResult <IEnumerable <Options> > >(); }