コード例 #1
0
        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();
        }
コード例 #2
0
 private void Refresh()
 {
     options       = OptionsController.GetOptions();
     interactables = InteractablesController.GetInteractables(options);
     try {
         TalkableId = serializedObject.FindProperty("talkableId");
     }
     catch (Exception)
     {
         // ignored
     }
 }
コード例 #3
0
        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();
        }
コード例 #4
0
        public void GetOptions_methodCalled_OptionsReturned()
        {
            var result = _controller.GetOptions();

            result.Should().BeOfType <OkNegotiatedContentResult <IEnumerable <Options> > >();
        }