示例#1
0
 public override void SetWithArgs(ProppStory story, List <string> arguments)
 {
     base.SetWithArgs(story, arguments);
     performChar = story.FindCharacterName(arguments[0]);
     targetChar  = story.FindCharacterName(arguments[1]);
     obj         = story.FindCharacterName(arguments[2]);
 }
 public override void SetWithArgs(ProppStory story, List <string> arguments)
 {
     base.SetWithArgs(story, arguments);
     performChar       = story.FindCharacterName(arguments[0]);
     targetChar        = story.FindCharacterName(arguments[1]);
     liquidationAction = story.villainy.liquidationAction;
 }
 public void MakeRandomStory()
 {
     currentStoryIndex  = 0;
     currentActionIndex = 0;
     story = randomStoryGenerator.GenerateStory(out storyData);
     //Debug.Log(JsonUtility.ToJson(new ProppStoryData(story)));
 }
    public override ProppStory GenerateStory(out ProppStoryData storyData)
    {
        storyData = RetrieveStoryData();
        ProppStory story = ReuseReviseStory(storyData);

        return(story);
    }
 public void MakeCBRStory(List <int> condition)
 {
     currentStoryIndex  = 0;
     currentActionIndex = 0;
     cbrStoryGenerator.SetCondition(condition);
     story = cbrStoryGenerator.GenerateStory(out storyData);
     //Debug.Log(JsonUtility.ToJson(new ProppStoryData(story)));
 }
 public override void SetWithArgs(ProppStory story, List <string> arguments)
 {
     base.SetWithArgs(story, arguments);
     performChar = story.FindCharacterName(arguments[0]);
     contents    = arguments[1];
     if (contents == "villainy")
     {
         contents = story.villainy.villainyAction.DescriptionAsNoun();
     }
 }
示例#7
0
 public ProppStoryData(ProppStory story)
 {
     interdiction = new ProppActionData(story.interdiction);
     villainy     = new ProppVillainyData(story.villainy);
     foreach (var f in story.functions)
     {
         functions.Add(new ProppFunctionData(f));
     }
     characters = story.characters;
 }
示例#8
0
 public ProppStoryData(ProppStory story, int newId, string newName)
 {
     interdiction = new ProppActionData(story.interdiction);
     villainy     = new ProppVillainyData(story.villainy);
     foreach (var f in story.functions)
     {
         functions.Add(new ProppFunctionData(f));
     }
     characters = story.characters;
     id         = newId;
     name       = newName;
 }
示例#9
0
 public override void SetWithArgs(ProppStory story, List <string> arguments)
 {
     base.SetWithArgs(story, arguments);
     performChar = story.FindCharacterName(arguments[0]);
     targetChar  = story.FindCharacterName(arguments[1]);
     contents    = arguments[2];
     if (contents == "interdiction")
     {
         contents  = story.interdiction.DescriptionAsNoun();
         contents += "을 금지한다고"
         ;
     }
 }
示例#10
0
 public void SetTextWith(ProppStory story)
 {
     if (story != null)
     {
         storyText.text          = story.Text;
         playButton.interactable = true;
         saveButton.interactable = true;
     }
     else
     {
         storyText.text          = "새로운 이야기를 생성해주세요.";
         playButton.interactable = false;
         saveButton.interactable = false;
     }
 }
示例#11
0
 public virtual void SetWithArgs(ProppStory story, List <string> arguments)
 {
     this.arguments = arguments;
 }
 public override void SetWithArgs(ProppStory story, List <string> arguments)
 {
     base.SetWithArgs(story, arguments);
     villainyAction = story.villainy.villainyAction;
 }
示例#13
0
 public void SetStory(ProppStory s)
 {
     story = s;
 }
 public void SetStory(ProppStory madeStory)
 {
     currentStoryIndex  = 0;
     currentActionIndex = 0;
     story = madeStory;
 }
示例#15
0
 public void SetStory(ProppStory story)
 {
     _story = story;
 }
示例#16
0
 public override void SetWithArgs(ProppStory story, List <string> arguments)
 {
     base.SetWithArgs(story, arguments);
     violateChar   = story.FindCharacterName(arguments[0]);
     violateAction = story.interdiction;
 }
 public virtual void SetFunctionDescription(ProppStory story, Dictionary <string, string> description)
 {
     this.description = description;
 }